mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-06 23:24:01 +02:00
Removed ttl menu from inaccessible groups and channels.
This commit is contained in:
parent
823fc25fa8
commit
e3e380124d
1 changed files with 4 additions and 2 deletions
|
@ -108,9 +108,11 @@ bool TTLValidator::can() const {
|
||||||
&& !_peer->isNotificationsUser()
|
&& !_peer->isNotificationsUser()
|
||||||
&& !_peer->asUser()->isInaccessible())
|
&& !_peer->asUser()->isInaccessible())
|
||||||
|| (_peer->isChat()
|
|| (_peer->isChat()
|
||||||
&& _peer->asChat()->canDeleteMessages())
|
&& _peer->asChat()->canDeleteMessages()
|
||||||
|
&& _peer->asChat()->amIn())
|
||||||
|| (_peer->isChannel()
|
|| (_peer->isChannel()
|
||||||
&& _peer->asChannel()->canDeleteMessages());
|
&& _peer->asChannel()->canDeleteMessages()
|
||||||
|
&& _peer->asChannel()->amIn());
|
||||||
}
|
}
|
||||||
|
|
||||||
void TTLValidator::showToast() const {
|
void TTLValidator::showToast() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue