Remove "Create poll" button in Replies chat.

Fixes #27817.
This commit is contained in:
John Preston 2024-04-26 19:20:15 +04:00
parent c803603de4
commit a272807a99
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}