2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-04 00:15:42 +00:00

No 'Clear History' for everyone in groups.

This commit is contained in:
John Preston
2021-02-19 14:18:13 +04:00
parent 018232680f
commit 0a678ae8bd
4 changed files with 7 additions and 9 deletions

View File

@@ -606,11 +606,7 @@ void Histories::deleteAllMessages(
// }
}).send();
} else if (channel) {
const auto flags = revoke
? MTPchannels_DeleteHistory::Flag::f_for_everyone
: MTPchannels_DeleteHistory::Flag(0);
return session().api().request(MTPchannels_DeleteHistory(
MTP_flags(flags),
channel->inputChannel,
MTP_int(deleteTillId)
)).done([=](const MTPBool &result) {