mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Allow several accounts in Core::App.
This commit is contained in:
@@ -248,7 +248,6 @@ void CodeWidget::codeSubmitDone(const MTPauth_Authorization &result) {
|
||||
showError(rpl::single(Lang::Hard::ServerError()));
|
||||
return;
|
||||
}
|
||||
cSetLoggedPhoneNumber(getData()->phone);
|
||||
finish(data.vuser());
|
||||
}, [&](const MTPDauth_authorizationSignUpRequired &data) {
|
||||
if (const auto terms = data.vterms_of_service()) {
|
||||
|
@@ -373,8 +373,6 @@ void QrWidget::done(const MTPauth_Authorization &authorization) {
|
||||
showError(rpl::single(Lang::Hard::ServerError()));
|
||||
return;
|
||||
}
|
||||
const auto phone = data.vuser().c_user().vphone().value_or_empty();
|
||||
cSetLoggedPhoneNumber(phone);
|
||||
finish(data.vuser());
|
||||
}, [&](const MTPDauth_authorizationSignUpRequired &data) {
|
||||
_requestId = 0;
|
||||
|
Reference in New Issue
Block a user