mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Disable polls in monoforums, enable in Saved Messages.
This commit is contained in:
@@ -663,10 +663,11 @@ bool PeerData::canPinMessages() const {
|
||||
|
||||
bool PeerData::canCreatePolls() const {
|
||||
if (const auto user = asUser()) {
|
||||
return user->isBot()
|
||||
&& !user->isSupport()
|
||||
&& !user->isRepliesChat()
|
||||
&& !user->isVerifyCodes();
|
||||
return user->isSelf()
|
||||
|| (user->isBot()
|
||||
&& !user->isSupport()
|
||||
&& !user->isRepliesChat()
|
||||
&& !user->isVerifyCodes());
|
||||
}
|
||||
return Data::CanSend(this, ChatRestriction::SendPolls);
|
||||
}
|
||||
|
Reference in New Issue
Block a user