assistant continue

This commit is contained in:
Gautier Pelloux-Prayer 2016-08-02 16:18:16 +02:00
parent 12fb756895
commit d54aa4f997
2 changed files with 7 additions and 7 deletions

View file

@ -531,15 +531,15 @@ static UICompositeViewDescription *compositeDescription = nil;
LinphoneAccountCreatorStatus s =
linphone_account_creator_set_phone_number(account_creator, inputEntry.length > 0 ? inputEntry.UTF8String : NULL, prefix.UTF8String);
if (s != LinphoneAccountCreatorOK) linphone_account_creator_set_phone_number(account_creator, NULL, NULL);
createPhone.errorLabel.text = [AssistantView errorForStatus:s];
// if phone is empty and username is empty, this is wrong
if (s == LinphoneAccountCreatorOK) {
if (linphone_account_creator_get_phone_number(account_creator) == NULL
&& linphone_account_creator_get_username(account_creator) == NULL) {
return LinphoneAccountCreatorPhoneNumberInvalid;
}
if (linphone_account_creator_get_phone_number(account_creator) == NULL) {
s = LinphoneAccountCreatorPhoneNumberTooShort;
}
createPhone.errorLabel.text = [AssistantView errorForStatus:s];
return s != LinphoneAccountCreatorOK;
}];

@ -1 +1 @@
Subproject commit fbb24ec879896a82c257d986df10a9a2ab416e90
Subproject commit d687000a81f7d0a0dc9957ee51050666540a31b6