mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-02-02 20:29:23 +00:00
Fix recovering account from phone.
This commit is contained in:
parent
f65cb5ef19
commit
163f9ba067
1 changed files with 10 additions and 4 deletions
|
|
@ -132,8 +132,14 @@ private:
|
|||
bool error = false;
|
||||
QVariantMap description = doc.toVariant().toMap();
|
||||
creator->setToken(description.value("token").toString().toStdString());
|
||||
emit mAssistant->createStatusChanged("Creating account");
|
||||
creator->createAccount();// it will automatically use the account creation token.
|
||||
// it will automatically use the account creation token.
|
||||
if (!mAssistant->mCountryCode.isEmpty()) {
|
||||
emit mAssistant->createStatusChanged("Recovering account");
|
||||
creator->recoverAccount();
|
||||
}else{
|
||||
emit mAssistant->createStatusChanged("Creating account");
|
||||
creator->createAccount();
|
||||
}
|
||||
}else
|
||||
QTimer::singleShot(2000, [creator](){
|
||||
creator->requestAccountCreationTokenUsingRequestToken();
|
||||
|
|
@ -245,8 +251,8 @@ void AssistantModel::create () {
|
|||
|
||||
void AssistantModel::login () {
|
||||
setIsProcessing(true);
|
||||
if (!mCountryCode.isEmpty()) {
|
||||
mAccountCreator->recoverAccount();
|
||||
if (!mCountryCode.isEmpty()) {// Recovering account from phone
|
||||
mAccountCreator->requestAccountCreationRequestToken();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue