2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 15:05:56 +00:00

Update API scheme on layer 119.

This commit is contained in:
John Preston
2020-09-18 12:57:04 +03:00
parent 61d89113d4
commit f73b0f0b0d
4 changed files with 13 additions and 9 deletions

View File

@@ -1919,10 +1919,10 @@ void Updates::feedUpdate(const MTPUpdate &update) {
}
} break;
case mtpc_updateReadDiscussion: {
const auto &d = update.c_updateReadDiscussion();
const auto peer = peerFromMTP(d.vpeer());
if (const auto item = session().data().message(peerToChannel(peer), d.vmsg_id().v)) {
case mtpc_updateReadChannelDiscussionInbox: {
const auto &d = update.c_updateReadChannelDiscussionInbox();
const auto channelId = d.vchannel_id().v;
if (const auto item = session().data().message(channelId, d.vtop_msg_id().v)) {
item->setCommentsReadTill(d.vread_max_id().v);
}
} break;