2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +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

@@ -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);

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;