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

Method watchSessionChanges

Telegram/SourceFiles/main/main_account.cpp:116–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114}
115
116void Account::watchSessionChanges() {
117 sessionChanges(
118 ) | rpl::on_next([=](Session *session) {
119 if (!session && _mtp) {
120 _mtp->setUserPhone(QString());
121 }
122 }, _lifetime);
123}
124
125uint64 Account::willHaveSessionUniqueId(MTP::Config *config) const {
126 // See also Session::uniqueId.

Callers

nothing calls this directly

Calls 2

setUserPhoneMethod · 0.80
QStringClass · 0.50

Tested by

no test coverage detected