2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-02 23:55:12 +00:00

Allow clearing history in megagroups.

This commit is contained in:
John Preston
2022-06-20 11:18:38 +04:00
parent 29c61635de
commit ff51bf81f3
3 changed files with 3 additions and 6 deletions

View File

@@ -641,8 +641,9 @@ void Histories::deleteAllMessages(
// }
}).send();
} else if (channel) {
using Flag = MTPchannels_DeleteHistory::Flag;
return session().api().request(MTPchannels_DeleteHistory(
MTP_flags(0),
MTP_flags(revoke ? Flag::f_for_everyone : Flag(0)),
channel->inputChannel,
MTP_int(deleteTillId)
)).done(finish).fail(finish).send();