fix coding style

This commit is contained in:
Benjamin Reis 2018-01-10 17:04:30 +01:00
parent 5be5030c42
commit d02fa8b42a

View file

@ -865,25 +865,15 @@ static void linphone_iphone_display_status(struct _LinphoneCore *lc, const char
|| linphone_call_log_get_status(UNlog) == LinphoneCallMissed
|| linphone_call_log_get_status(UNlog) == LinphoneCallAborted
|| linphone_call_log_get_status(UNlog) == LinphoneCallEarlyAborted)) {
UNMutableNotificationContent *missed_content =
[[UNMutableNotificationContent alloc] init];
UNMutableNotificationContent *missed_content = [[UNMutableNotificationContent alloc] init];
missed_content.title = NSLocalizedString(@"Missed call", nil);
missed_content.body = address;
UNNotificationRequest *missed_req = [UNNotificationRequest requestWithIdentifier:@"call_request"
content:missed_content
trigger:NULL];
[[UNUserNotificationCenter currentNotificationCenter]
addNotificationRequest:missed_req
withCompletionHandler:^(
NSError *_Nullable error) {
// Enable or disable features based on
// authorization.
if (error) {
LOGD(@"Error while adding "
@"notification request :");
LOGD(error.description);
}
}];
[UNUserNotificationCenter.currentNotificationCenter addNotificationRequest:missed_req
withCompletionHandler:^(NSError *_Nullable error)
{if (error) LOGD(@"Error while adding notification request : %@", error.description);}];
}
linphone_core_set_network_reachable(LC, FALSE);
LinphoneManager.instance.connectivity = none;