Fix clearing history in legacy groups.

This commit is contained in:
John Preston 2025-07-01 14:12:35 +04:00
parent bcd42dbb6a
commit 44810f95a5

View file

@ -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) {