Fixed ability to clear history for groups and megagroups.

This commit is contained in:
23rd
2025-09-08 17:07:44 +03:00
parent 82c69a03ef
commit e01f53a58c
@@ -112,8 +112,9 @@ void DeleteMessagesBox::prepare() {
Ui::Text::RichLangValue);
deleteStyle = &st::attentionBoxButton;
} else if (_wipeHistoryJustClear) {
_revokeJustClearForChannel = true;
details.text = (peer->isChannel() && !peer->isMegagroup())
const auto isChannel = peer->isChannel() && !peer->isMegagroup();
_revokeJustClearForChannel = isChannel;
details.text = isChannel
? tr::lng_sure_delete_channel_history(
tr::now,
lt_channel,