mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 06:09:39 +00:00
Repair repeat call notif when auto-answer
This commit is contained in:
parent
816f7466cb
commit
576788be5c
1 changed files with 7 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue