mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Allow forwarding polls to monoforums.
This commit is contained in:
@@ -274,12 +274,6 @@ inline auto DefaultRestrictionValue(
|
||||
| Flag::Forbidden
|
||||
| Flag::Creator
|
||||
| Flag::Broadcast;
|
||||
if (channel->isMonoforum()) {
|
||||
rights &= ~ChatRestriction::SendPolls;
|
||||
if (!rights) {
|
||||
return rpl::single(false);
|
||||
}
|
||||
}
|
||||
return rpl::combine(
|
||||
PeerFlagsValue(channel, mask),
|
||||
AdminRightValue(
|
||||
|
||||
Reference in New Issue
Block a user