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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user