mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 22:54:01 +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()
|
return (_peer->isUser()
|
||||||
&& !_peer->isSelf()
|
&& !_peer->isSelf()
|
||||||
&& !_peer->isNotificationsUser()
|
&& !_peer->isNotificationsUser()
|
||||||
&& !_peer->asUser()->isInaccessible())
|
&& !_peer->asUser()->isInaccessible()
|
||||||
|
&& (!_peer->asUser()->meRequiresPremiumToWrite()
|
||||||
|
|| _peer->session().premium()))
|
||||||
|| (_peer->isChat()
|
|| (_peer->isChat()
|
||||||
&& _peer->asChat()->canEditInformation()
|
&& _peer->asChat()->canEditInformation()
|
||||||
&& _peer->asChat()->amIn())
|
&& _peer->asChat()->amIn())
|
||||||
|
|
Loading…
Add table
Reference in a new issue