mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-07-25 23:13:11 +02:00
Fix clearing history in legacy groups.
This commit is contained in:
parent
bcd42dbb6a
commit
44810f95a5
1 changed files with 1 additions and 1 deletions
|
@ -813,7 +813,7 @@ void Histories::deleteAllMessages(
|
|||
channel->inputChannel,
|
||||
MTP_int(deleteTillId)
|
||||
)).done(finish).fail(finish).send();
|
||||
} else if (revoke && chat && chat->amCreator()) {
|
||||
} else if (!justClear && revoke && chat && chat->amCreator()) {
|
||||
return session().api().request(MTPmessages_DeleteChat(
|
||||
chat->inputChat
|
||||
)).done(finish).fail([=](const MTP::Error &error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue