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:
@@ -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());
|
||||
|
Reference in New Issue
Block a user