mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Replaced int botStatus with a type-safe Data::BotStatus enum class.
This commit is contained in:
@@ -24,11 +24,11 @@ bool UseBotTextOptions(
|
||||
return true;
|
||||
}
|
||||
} else if (const auto chat = history->peer->asChat()) {
|
||||
if (chat->botStatus >= 0) {
|
||||
if (chat->botStatus != Data::BotStatus::NoBots) {
|
||||
return true;
|
||||
}
|
||||
} else if (const auto group = history->peer->asMegagroup()) {
|
||||
if (group->mgInfo->botStatus >= 0) {
|
||||
if (group->mgInfo->botStatus != Data::BotStatus::NoBots) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user