mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 15:13:57 +02:00
Disable ttl for self and notifications.
This commit is contained in:
parent
221b896117
commit
3d85ca2f84
1 changed files with 3 additions and 1 deletions
|
@ -665,7 +665,9 @@ void DeleteMessagesBox::prepare() {
|
||||||
|
|
||||||
if (_wipeHistoryJustClear
|
if (_wipeHistoryJustClear
|
||||||
&& _wipeHistoryPeer
|
&& _wipeHistoryPeer
|
||||||
&& (_wipeHistoryPeer->isUser()
|
&& ((_wipeHistoryPeer->isUser()
|
||||||
|
&& !_wipeHistoryPeer->isSelf()
|
||||||
|
&& !_wipeHistoryPeer->isNotificationsUser())
|
||||||
|| (_wipeHistoryPeer->isChat()
|
|| (_wipeHistoryPeer->isChat()
|
||||||
&& _wipeHistoryPeer->asChat()->canDeleteMessages())
|
&& _wipeHistoryPeer->asChat()->canDeleteMessages())
|
||||||
|| (_wipeHistoryPeer->isChannel()
|
|| (_wipeHistoryPeer->isChannel()
|
||||||
|
|
Loading…
Add table
Reference in a new issue