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