parent
c803603de4
commit
a272807a99
|
@ -533,7 +533,9 @@ bool PeerData::canPinMessages() const {
|
||||||
|
|
||||||
bool PeerData::canCreatePolls() const {
|
bool PeerData::canCreatePolls() const {
|
||||||
if (const auto user = asUser()) {
|
if (const auto user = asUser()) {
|
||||||
return user->isBot() && !user->isSupport();
|
return user->isBot()
|
||||||
|
&& !user->isSupport()
|
||||||
|
&& !user->isRepliesChat();
|
||||||
}
|
}
|
||||||
return Data::CanSend(this, ChatRestriction::SendPolls);
|
return Data::CanSend(this, ChatRestriction::SendPolls);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue