2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 06:55:58 +00:00

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

View File

@@ -668,6 +668,8 @@ bool PeerData::canCreatePolls() const {
&& !user->isSupport()
&& !user->isRepliesChat()
&& !user->isVerifyCodes());
} else if (isMonoforum()) {
return false;
}
return Data::CanSend(this, ChatRestriction::SendPolls);
}