mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
Fixed ability to clear history for groups and megagroups.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user