Let the core manage IM policy

This commit is contained in:
Benjamin Reis 2017-06-22 15:53:56 +02:00
parent cdd3005908
commit 2dd9cfa16f

View file

@ -1985,11 +1985,6 @@ static BOOL libStarted = FALSE;
[PhoneMainView.instance presentViewController:errView animated:YES completion:nil];
}
// Enable notify policy for all
LinphoneImNotifPolicy *im_notif_policy;
im_notif_policy = linphone_core_get_im_notif_policy(theLinphoneCore);
linphone_im_notif_policy_enable_all(im_notif_policy);
if ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) {
// go directly to bg mode
[self enterBackgroundMode];