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