mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Don't cancel notification on missed call
This commit is contained in:
parent
c8a341f0c7
commit
43d6a09338
1 changed files with 8 additions and 4 deletions
|
|
@ -467,10 +467,14 @@ static void linphone_iphone_display_status(struct _LinphoneCore * lc, const char
|
|||
incallBgTask=0;
|
||||
}
|
||||
if(data != nil && data->notification != nil) {
|
||||
// cancel local notif if needed
|
||||
[[UIApplication sharedApplication] cancelLocalNotification:data->notification];
|
||||
[data->notification release];
|
||||
data->notification = nil;
|
||||
LinphoneCallLog *log = linphone_call_get_call_log(call);
|
||||
|
||||
if(log == NULL || log->status != LinphoneCallMissed) {
|
||||
// cancel local notif if needed
|
||||
[[UIApplication sharedApplication] cancelLocalNotification:data->notification];
|
||||
[data->notification release];
|
||||
data->notification = nil;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue