From 3d85ca2f844f7051c54b8d39bc9107f4dae3d705 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 19 Feb 2021 18:58:07 +0400 Subject: [PATCH] Disable ttl for self and notifications. --- Telegram/SourceFiles/boxes/confirm_box.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()