mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Update API scheme on layer 119.
This commit is contained in:
@@ -81,7 +81,9 @@ void SendProgressManager::send(
|
||||
}
|
||||
}();
|
||||
const auto requestId = _session->api().request(MTPmessages_SetTyping(
|
||||
MTP_flags(0),
|
||||
history->peer->input,
|
||||
MTP_int(0), // top_msg_id
|
||||
action
|
||||
)).done([=](const MTPBool &result, mtpRequestId requestId) {
|
||||
done(result, requestId);
|
||||
|
@@ -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