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