mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Added handler of urls for login.
This commit is contained in:
@@ -602,6 +602,16 @@ void Account::destroyStaleAuthorizationKeys() {
|
||||
}
|
||||
}
|
||||
|
||||
void Account::setHandleLoginCode(Fn<void(QString)> callback) {
|
||||
_handleLoginCode = std::move(callback);
|
||||
}
|
||||
|
||||
void Account::handleLoginCode(const QString &code) const {
|
||||
if (_handleLoginCode) {
|
||||
_handleLoginCode(code);
|
||||
}
|
||||
}
|
||||
|
||||
void Account::resetAuthorizationKeys() {
|
||||
Expects(_mtp != nullptr);
|
||||
|
||||
|
Reference in New Issue
Block a user