2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-04 00:25:17 +00:00

Use only shared media code for pinned tracking.

This commit is contained in:
John Preston
2020-10-21 14:07:49 +03:00
parent 59b4c5dad9
commit cd5cad72bd
17 changed files with 162 additions and 273 deletions

View File

@@ -444,7 +444,7 @@ PinMessageBox::PinMessageBox(
: _peer(peer)
, _api(&peer->session().mtp())
, _msgId(msgId)
, _pinningOld(msgId < peer->topPinnedMessageId())
, _pinningOld(msgId < Data::ResolveTopPinnedId(peer))
, _text(
this,
(_pinningOld