2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 15:45:12 +00:00

Use only shared media code for pinned tracking.

This commit is contained in:
John Preston
2020-10-21 14:07:49 +03:00
parent 59b4c5dad9
commit cd5cad72bd
17 changed files with 162 additions and 273 deletions

View File

@@ -769,9 +769,7 @@ void ApplyChannelUpdate(
}
}
if (const auto pinned = update.vpinned_msg_id()) {
channel->setTopPinnedMessageId(pinned->v);
} else {
channel->clearPinnedMessages();
SetTopPinnedMessageId(channel, pinned->v);
}
if (channel->isMegagroup()) {
const auto stickerSet = update.vstickerset();