Disable ttl for self and notifications.

This commit is contained in:
John Preston 2021-02-19 18:58:07 +04:00
parent 221b896117
commit 3d85ca2f84

View file

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