mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Use UserData::isBot where applicable.
This commit is contained in:
@@ -286,7 +286,7 @@ crl::time OnlineChangeTimeout(TimeId online, TimeId now) {
|
||||
}
|
||||
|
||||
crl::time OnlineChangeTimeout(not_null<UserData*> user, TimeId now) {
|
||||
if (user->isServiceUser() || user->botInfo) {
|
||||
if (user->isServiceUser() || user->isBot()) {
|
||||
return kMaxOnlineChangeTimeout;
|
||||
}
|
||||
return OnlineChangeTimeout(user->onlineTill, now);
|
||||
@@ -361,7 +361,7 @@ bool OnlineTextActive(TimeId online, TimeId now) {
|
||||
}
|
||||
|
||||
bool OnlineTextActive(not_null<UserData*> user, TimeId now) {
|
||||
if (user->isServiceUser() || user->botInfo) {
|
||||
if (user->isServiceUser() || user->isBot()) {
|
||||
return false;
|
||||
}
|
||||
return OnlineTextActive(user->onlineTill, now);
|
||||
|
Reference in New Issue
Block a user