mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 22:25:12 +00:00
Track multiple pinned messages in MessagesList.
This commit is contained in:
@@ -333,9 +333,9 @@ void ApplyChatUpdate(not_null<ChatData*> chat, const MTPDchatFull &update) {
|
||||
return QString();
|
||||
}));
|
||||
if (const auto pinned = update.vpinned_msg_id()) {
|
||||
chat->setPinnedMessageId(pinned->v);
|
||||
chat->setTopPinnedMessageId(pinned->v);
|
||||
} else {
|
||||
chat->clearPinnedMessage();
|
||||
chat->clearPinnedMessages();
|
||||
}
|
||||
chat->checkFolder(update.vfolder_id().value_or_empty());
|
||||
chat->fullUpdated();
|
||||
|
Reference in New Issue
Block a user