mirror of https://github.com/procxx/kepka.git
Disable create polls in support accounts.
This commit is contained in:
parent
07e3671ca8
commit
cd75a45673
|
@ -770,7 +770,7 @@ int PeerData::slowmodeSecondsLeft() const {
|
||||||
|
|
||||||
bool PeerData::canSendPolls() const {
|
bool PeerData::canSendPolls() const {
|
||||||
if (const auto user = asUser()) {
|
if (const auto user = asUser()) {
|
||||||
return user->isBot();
|
return user->isBot() && !user->isSupport();
|
||||||
} else if (const auto chat = asChat()) {
|
} else if (const auto chat = asChat()) {
|
||||||
return chat->canSendPolls();
|
return chat->canSendPolls();
|
||||||
} else if (const auto channel = asChannel()) {
|
} else if (const auto channel = asChannel()) {
|
||||||
|
|
Loading…
Reference in New Issue