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