mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Show bot active users count in status.
This commit is contained in:
parent
6b96466c5e
commit
51fc104c60
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ std::optional<QString> OnlineTextSpecial(not_null<UserData*> user) {
|
||||||
} else if (user->isSupport()) {
|
} else if (user->isSupport()) {
|
||||||
return tr::lng_status_support(tr::now);
|
return tr::lng_status_support(tr::now);
|
||||||
} else if (user->isBot()) {
|
} else if (user->isBot()) {
|
||||||
|
if (const auto count = user->botInfo->activeUsers) {
|
||||||
|
return tr::lng_bot_status_users(
|
||||||
|
tr::now,
|
||||||
|
lt_count_decimal,
|
||||||
|
count);
|
||||||
|
}
|
||||||
return tr::lng_status_bot(tr::now);
|
return tr::lng_status_bot(tr::now);
|
||||||
} else if (user->isServiceUser()) {
|
} else if (user->isServiceUser()) {
|
||||||
return tr::lng_status_support(tr::now);
|
return tr::lng_status_support(tr::now);
|
||||||
|
|
Loading…
Add table
Reference in a new issue