2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update extended media, hide inline keyboard.

This commit is contained in:
John Preston
2022-09-12 16:10:30 +04:00
parent c2fd4ccd59
commit d2234d88b6
12 changed files with 112 additions and 27 deletions

View File

@@ -1650,6 +1650,15 @@ void Updates::feedUpdate(const MTPUpdate &update) {
}
} break;
case mtpc_updateMessageExtendedMedia: {
const auto &d = update.c_updateMessageExtendedMedia();
const auto peerId = peerFromMTP(d.vpeer());
const auto msgId = d.vmsg_id().v;
if (const auto item = session().data().message(peerId, msgId)) {
item->applyEdition(d.vextended_media());
}
} break;
// Messages being read.
case mtpc_updateReadHistoryInbox: {
auto &d = update.c_updateReadHistoryInbox();