2
0
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:
23rd
2022-12-29 02:33:57 +03:00
parent 9896855789
commit d424a8b039
7 changed files with 89 additions and 10 deletions

View File

@@ -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);