mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Pass MTP::Instance to MTP::Sender.
This commit is contained in:
@@ -498,16 +498,16 @@ rpl::producer<> Account::configUpdates() const {
|
||||
}
|
||||
|
||||
void Account::resetAuthorizationKeys() {
|
||||
_mtpValue = nullptr;
|
||||
_mtp = nullptr;
|
||||
_mtpValue = _mtp.get();
|
||||
startMtp();
|
||||
Local::writeMtpData();
|
||||
}
|
||||
|
||||
void Account::clearMtp() {
|
||||
_mtpValue = nullptr;
|
||||
_mtp = nullptr;
|
||||
_mtpForKeysDestroy = nullptr;
|
||||
_mtpValue = _mtp.get();
|
||||
}
|
||||
|
||||
} // namespace Main
|
||||
|
Reference in New Issue
Block a user