mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-13 04:37:11 +02:00
Removed ability to set TTL to chat with require-premium user.
This commit is contained in:
parent
d754014321
commit
e36afc675e
1 changed files with 3 additions and 1 deletions
|
@ -112,7 +112,9 @@ bool TTLValidator::can() const {
|
|||
return (_peer->isUser()
|
||||
&& !_peer->isSelf()
|
||||
&& !_peer->isNotificationsUser()
|
||||
&& !_peer->asUser()->isInaccessible())
|
||||
&& !_peer->asUser()->isInaccessible()
|
||||
&& (!_peer->asUser()->meRequiresPremiumToWrite()
|
||||
|| _peer->session().premium()))
|
||||
|| (_peer->isChat()
|
||||
&& _peer->asChat()->canEditInformation()
|
||||
&& _peer->asChat()->amIn())
|
||||
|
|
Loading…
Add table
Reference in a new issue