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

Method madeAction

Telegram/SourceFiles/data/data_user.cpp:520–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

518}
519
520void UserData::madeAction(TimeId when) {
521 if (isBot() || isServiceUser() || when <= 0) {
522 return;
523 }
524 const auto till = lastseen().onlineTill();
525 if (till < when + 1
526 && updateLastseen(
527 Data::LastseenStatus::OnlineTill(
528 when + kSetOnlineAfterActivity,
529 !till || lastseen().isLocalOnlineValue(),
530 lastseen().isHiddenByMe()))) {
531 session().changes().peerUpdated(this, UpdateFlag::OnlineStatus);
532 }
533}
534
535void UserData::setAccessHash(uint64 accessHash) {
536 if (accessHash == kInaccessibleAccessHashOld) {

Callers 4

registerForMethod · 0.80
applyUpdateNoPtsCheckMethod · 0.80
feedUpdateMethod · 0.80
newItemAddedMethod · 0.80

Calls 5

onlineTillMethod · 0.80
isLocalOnlineValueMethod · 0.80
isHiddenByMeMethod · 0.80
peerUpdatedMethod · 0.80
changesMethod · 0.45

Tested by

no test coverage detected