2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +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

@@ -262,9 +262,9 @@ void ApplyUserUpdate(not_null<UserData*> user, const MTPDuserFull &update) {
user->setBotInfoVersion(-1);
}
if (const auto pinned = update.vpinned_msg_id()) {
user->setPinnedMessageId(pinned->v);
user->setTopPinnedMessageId(pinned->v);
} else {
user->clearPinnedMessage();
user->clearPinnedMessages();
}
user->setFullFlags(update.vflags().v);
user->setIsBlocked(update.is_blocked());