Commit 96707766 authored by Benjamin REIS's avatar Benjamin REIS

fix ui when managing 2 calls

parent e6e5fced
......@@ -409,7 +409,6 @@ static RootViewManager *rootViewManagerInstance = nil;
}
case LinphoneCallError: {
[self displayCallError:call message:message];
break;
}
case LinphoneCallEnd: {
const MSList *calls = linphone_core_get_calls(LC);
......@@ -421,6 +420,22 @@ static RootViewManager *rootViewManagerInstance = nil;
}
} else {
linphone_call_resume((LinphoneCall *)calls->data);
while (calls) {
if (
linphone_call_get_state((LinphoneCall *)calls->data) == LinphoneCallIncomingReceived ||
linphone_call_get_state((LinphoneCall *)calls->data) == LinphoneCallIncomingEarlyMedia
) {
[self displayIncomingCall:(LinphoneCall *)calls->data];
break;
} else if (linphone_call_get_state((LinphoneCall *)calls->data) == LinphoneCallOutgoingRinging) {
[self changeCurrentView:CallOutgoingView.compositeViewDescription];
break;
}
calls = calls->next;
}
if (!calls) {
[self changeCurrentView:CallView.compositeViewDescription];
}
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment