Fix assistant issues

This commit is contained in:
REIS Benjamin 2016-11-03 16:40:38 +01:00
parent 5aa78fb14b
commit c87e86c51c
2 changed files with 7 additions and 3 deletions

View file

@ -859,7 +859,11 @@ static UICompositeViewDescription *compositeDescription = nil;
_outgoingView = AssistantLinkView.compositeViewDescription;
[self configureProxyConfig];
} else {
[self showErrorPopup:resp];
if (linphone_account_creator_get_username(account_creator) && strcmp(resp, "ERROR_ACCOUNT_DOESNT_EXIST")) {
[self showErrorPopup:"ERROR_BAD_CREDENTIALS"];
} else {
[self showErrorPopup:resp];
}
}
} else {
if (status == LinphoneAccountCreatorAccountExist || status == LinphoneAccountCreatorAccountExistWithAlias) {

View file

@ -182,8 +182,8 @@
LinphoneRegistrationState state = LinphoneRegistrationNone;
NSString *message = nil;
LinphoneGlobalState gstate = linphone_core_get_global_state(LC);
if ([PhoneMainView.instance.currentView equal:AssistantView.compositeViewDescription]) {
if ([PhoneMainView.instance.currentView equal:AssistantView.compositeViewDescription] || [PhoneMainView.instance.currentView equal:CountryListView.compositeViewDescription]) {
message = NSLocalizedString(@"Configuring account", nil);
} else if (gstate == LinphoneGlobalOn && !linphone_core_is_network_reachable(LC)) {
message = NSLocalizedString(@"Network down", nil);