Repair repeat call notif when auto-answer

This commit is contained in:
Benjamin Reis 2017-01-09 17:33:14 +01:00
parent 816f7466cb
commit 576788be5c

View file

@ -112,6 +112,13 @@
} else if (linphone_call_get_state(call) == LinphoneCallIncomingReceived) {
if ((floor(NSFoundationVersionNumber) <= NSFoundationVersionNumber_iOS_9_x_Max)) {
if ([LinphoneManager.instance lpConfigBoolForKey:@"autoanswer_notif_preference"]) {
if (call) {
LinphoneCallAppData *data = (__bridge LinphoneCallAppData *)linphone_call_get_user_data(call);
if (data->timer) {
[data->timer invalidate];
data->timer = nil;
}
}
linphone_core_accept_call(LC, call);
[PhoneMainView.instance changeCurrentView:CallView.compositeViewDescription];
} else {