2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Update API scheme to layer178, ads broke build.

This commit is contained in:
John Preston
2024-04-10 23:16:46 +04:00
parent 7387dfdd9c
commit ac15990b48
5 changed files with 33 additions and 15 deletions

View File

@@ -792,8 +792,10 @@ void SaveAllowedReactions(
? MTP_chatReactionsNone()
: MTP_chatReactionsSome(MTP_vector<MTPReaction>(ids));
peer->session().api().request(MTPmessages_SetChatAvailableReactions(
MTP_flags(0),
peer->input,
updated
updated,
MTP_int(0) // reactions_limit
)).done([=](const MTPUpdates &result) {
peer->session().api().applyUpdates(result);
if (const auto chat = peer->asChat()) {