2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Update API scheme on layer 148.

This commit is contained in:
John Preston
2022-10-04 08:55:43 +04:00
parent 001c46f68a
commit d15173e09d
9 changed files with 34 additions and 20 deletions

View File

@@ -187,10 +187,13 @@ void SetupReadAllMenu(
void SetupUnreadMentionsMenu(
not_null<Ui::RpWidget*> button,
Fn<PeerData*()> currentPeer) {
const auto topMsgId = 0;
const auto text = tr::lng_context_mark_read_mentions_all(tr::now);
const auto sendRequest = [=](not_null<PeerData*> peer, Fn<void()> done) {
peer->session().api().request(MTPmessages_ReadMentions(
peer->input
MTP_flags(0),
peer->input,
MTP_int(topMsgId)
)).done([=](const MTPmessages_AffectedHistory &result) {
done();
peer->session().api().applyAffectedHistory(peer, result);