2
0
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:
John Preston
2020-10-09 15:56:33 +03:00
parent 399b03beb2
commit ec35e3f081
19 changed files with 435 additions and 107 deletions

View File

@@ -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();