mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Use only shared media code for pinned tracking.
This commit is contained in:
@@ -333,9 +333,7 @@ void ApplyChatUpdate(not_null<ChatData*> chat, const MTPDchatFull &update) {
|
||||
return QString();
|
||||
}));
|
||||
if (const auto pinned = update.vpinned_msg_id()) {
|
||||
chat->setTopPinnedMessageId(pinned->v);
|
||||
} else {
|
||||
chat->clearPinnedMessages();
|
||||
SetTopPinnedMessageId(chat, pinned->v);
|
||||
}
|
||||
chat->checkFolder(update.vfolder_id().value_or_empty());
|
||||
chat->fullUpdated();
|
||||
|
Reference in New Issue
Block a user