MCPcopy Create free account
hub / github.com/TDesktop-x64/tdesktop / IsUserOnline

Function IsUserOnline

Telegram/SourceFiles/data/data_peer_values.cpp:512–517  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510}
511
512bool IsUserOnline(not_null<UserData*> user, TimeId now) {
513 if (!now) {
514 now = base::unixtime::now();
515 }
516 return OnlineTextActive(user, now);
517}
518
519bool ChannelHasActiveCall(not_null<ChannelData*> channel) {
520 return (channel->flags() & ChannelDataFlag::CallNotEmpty);

Callers 8

watchForOfflineMethod · 0.85
RowAccessibilityNameFunction · 0.85
SubItemValueFunction · 0.85
TopPeersContentFunction · 0.85

Calls 1

OnlineTextActiveFunction · 0.85

Tested by

no test coverage detected