fix create phone number account error display

This commit is contained in:
Danmei Chen 2021-03-17 09:55:06 +01:00
parent e57a36a950
commit a51bee7786

View file

@ -718,10 +718,6 @@ static UICompositeViewDescription *compositeDescription = nil;
account_creator, inputEntry.length > 0 ? inputEntry.UTF8String : NULL, prefix.UTF8String);
if (s != LinphoneAccountCreatorPhoneNumberStatusOk) {
linphone_account_creator_set_phone_number(account_creator, NULL, NULL);
// if phone is empty and username is empty, this is wrong
if (linphone_account_creator_get_username(account_creator) == NULL) {
s = LinphoneAccountCreatorPhoneNumberStatusTooShort;
}
}
createPhone.errorLabel.text = [AssistantView errorForLinphoneAccountCreatorPhoneNumberStatus:s];