2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update API scheme to layer 96.

This commit is contained in:
John Preston
2019-03-15 17:34:47 +04:00
parent f1b0b60340
commit 0cd7399dc9
4 changed files with 16 additions and 6 deletions

View File

@@ -4555,7 +4555,10 @@ void MainWidget::feedUpdate(const MTPUpdate &update) {
case mtpc_updateChatPinnedMessage: {
const auto &d = update.c_updateChatPinnedMessage();
if (const auto chat = session().data().chatLoaded(d.vchat_id.v)) {
chat->setPinnedMessageId(d.vid.v);
const auto status = chat->applyUpdateVersion(d.vversion.v);
if (status == ChatData::UpdateStatus::Good) {
chat->setPinnedMessageId(d.vid.v);
}
}
} break;