mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 07:25:46 +00:00
Respect boosts restrictions lifting.
This commit is contained in:
@@ -1122,7 +1122,8 @@ Data::RestrictionCheckResult PeerData::amRestricted(
|
||||
: ChatRestrictions(0));
|
||||
return (channel->amCreator() || allowByAdminRights(right, channel))
|
||||
? Result::Allowed()
|
||||
: (defaultRestrictions & right)
|
||||
: ((defaultRestrictions & right)
|
||||
&& !channel->unrestrictedByBoosts())
|
||||
? Result::WithEveryone()
|
||||
: (channel->restrictions() & right)
|
||||
? Result::Explicit()
|
||||
|
Reference in New Issue
Block a user