mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Optimize online dots + add animations.
This commit is contained in:
@@ -366,4 +366,11 @@ bool OnlineTextActive(not_null<UserData*> user, TimeId now) {
|
||||
return OnlineTextActive(user->onlineTill, now);
|
||||
}
|
||||
|
||||
bool IsPeerAnOnlineUser(not_null<PeerData*> peer) {
|
||||
if (const auto user = peer->asUser()) {
|
||||
return OnlineTextActive(user, unixtime());
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
} // namespace Data
|
||||
|
Reference in New Issue
Block a user