Allow forwarding polls to monoforums.

This commit is contained in:
John Preston
2025-06-02 18:19:16 +04:00
parent 6c80d443b9
commit dd8fdfc3d4
9 changed files with 60 additions and 33 deletions
@@ -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(