2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Update API scheme to layer 119. Count replies.

This commit is contained in:
John Preston
2020-09-01 10:44:18 +04:00
parent fcdc4cd465
commit 55edb3bdfe
54 changed files with 973 additions and 583 deletions

View File

@@ -433,7 +433,7 @@ void Filler::addBlockUser(not_null<UserData*> user) {
if (user->isBlocked()) {
PeerMenuUnblockUserWithBotRestart(user);
} else if (user->isBot()) {
user->session().api().blockUser(user);
user->session().api().blockPeer(user);
} else {
window->show(Box(PeerMenuBlockUserBox, window, user, false));
}
@@ -889,7 +889,7 @@ void PeerMenuBlockUserBox(
box->closeBox();
user->session().api().blockUser(user);
user->session().api().blockPeer(user);
if (reportChecked) {
user->session().api().request(MTPmessages_ReportSpam(
user->input
@@ -912,7 +912,7 @@ void PeerMenuBlockUserBox(
}
void PeerMenuUnblockUserWithBotRestart(not_null<UserData*> user) {
user->session().api().unblockUser(user, [=] {
user->session().api().unblockPeer(user, [=] {
if (user->isBot() && !user->isSupport()) {
user->session().api().sendBotStart(user);
}