mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-30 01:08:02 +00:00
Handle updateReadDiscussion.
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user