diff --git a/Telegram/SourceFiles/boxes/confirm_box.cpp b/Telegram/SourceFiles/boxes/confirm_box.cpp index 3828af9e45..cc10c6bf6d 100644 --- a/Telegram/SourceFiles/boxes/confirm_box.cpp +++ b/Telegram/SourceFiles/boxes/confirm_box.cpp @@ -665,7 +665,9 @@ void DeleteMessagesBox::prepare() { if (_wipeHistoryJustClear && _wipeHistoryPeer - && (_wipeHistoryPeer->isUser() + && ((_wipeHistoryPeer->isUser() + && !_wipeHistoryPeer->isSelf() + && !_wipeHistoryPeer->isNotificationsUser()) || (_wipeHistoryPeer->isChat() && _wipeHistoryPeer->asChat()->canDeleteMessages()) || (_wipeHistoryPeer->isChannel()