Always display incoming call on IOS < 10

This commit is contained in:
Benjamin Reis 2016-12-15 11:32:46 +01:00
parent a71be96923
commit ed9dc370d4
2 changed files with 4 additions and 2 deletions

View file

@ -114,7 +114,8 @@
}
instance->currentCallContextBeforeGoingBackground.call = 0;
} else if (linphone_call_get_state(call) == LinphoneCallIncomingReceived) {
if (linphone_core_get_calls_nb(LC) > 1) {
if (linphone_core_get_calls_nb(LC) > 1 ||
(floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max)) {
[PhoneMainView.instance displayIncomingCall:call];
}
// in this case, the ringing sound comes from the notification.

View file

@ -323,7 +323,8 @@ static RootViewManager *rootViewManagerInstance = nil;
switch (state) {
case LinphoneCallIncomingReceived:
case LinphoneCallIncomingEarlyMedia: {
if (linphone_core_get_calls_nb(LC) > 1) {
if (linphone_core_get_calls_nb(LC) > 1 ||
(floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max)) {
[self displayIncomingCall:call];
}
break;