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

Method setIsContact

Telegram/SourceFiles/data/data_user.cpp:150–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150void UserData::setIsContact(bool is) {
151 const auto status = is
152 ? ContactStatus::Contact
153 : ContactStatus::NotContact;
154 if (_contactStatus != status) {
155 _contactStatus = status;
156 session().changes().peerUpdated(this, UpdateFlag::IsContact);
157 }
158}
159
160Data::LastseenStatus UserData::lastseen() const {
161 return _lastseen;

Callers 3

requestContactsMethod · 0.80
processUserMethod · 0.80
readPeerFunction · 0.80

Calls 2

peerUpdatedMethod · 0.80
changesMethod · 0.45

Tested by

no test coverage detected