mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-23 00:36:53 +00:00
Handle updateReadDiscussion.
This commit is contained in:
parent
59abe95754
commit
c2bb2526d3
@ -1919,6 +1919,14 @@ 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)) {
|
||||
item->setCommentsReadTill(d.vread_max_id().v);
|
||||
}
|
||||
} break;
|
||||
|
||||
case mtpc_updateChannelAvailableMessages: {
|
||||
auto &d = update.c_updateChannelAvailableMessages();
|
||||
if (const auto channel = session().data().channelLoaded(d.vchannel_id().v)) {
|
||||
|
Loading…
Reference in New Issue
Block a user