mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
parent
c803603de4
commit
a272807a99
1 changed files with 3 additions and 1 deletions
|
@ -533,7 +533,9 @@ bool PeerData::canPinMessages() const {
|
|||
|
||||
bool PeerData::canCreatePolls() const {
|
||||
if (const auto user = asUser()) {
|
||||
return user->isBot() && !user->isSupport();
|
||||
return user->isBot()
|
||||
&& !user->isSupport()
|
||||
&& !user->isRepliesChat();
|
||||
}
|
||||
return Data::CanSend(this, ChatRestriction::SendPolls);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue