Don't cancel notification on missed call

This commit is contained in:
Yann Diorcet 2013-01-29 14:25:43 +01:00
parent c8a341f0c7
commit 43d6a09338

View file

@ -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;
}
}
}