pull/1/head
Frederic Jacobs 10 years ago
parent c6d44e59e2
commit 3acc47d6ad

@ -49,11 +49,15 @@
}
UILocalNotification *notification = [[UILocalNotification alloc] init];
notification.category = Signal_CallBack_Category;
notification.userInfo = @{Signal_Call_UserInfo_Key : cThread.contactIdentifier};
notification.soundName = @"NewMessage.aifc";
notification.alertBody =
[NSString stringWithFormat:NSLocalizedString(@"MSGVIEW_MISSED_CALL", nil), [thread name]];
if ([[Environment preferences] notificationPreviewType] == NotificationNoNameNoPreview) {
notification.alertBody = [NSString stringWithFormat:NSLocalizedString(@"MISSED_CALL", nil)];
} else {
notification.userInfo = @{Signal_Call_UserInfo_Key : cThread.contactIdentifier};
notification.category = Signal_CallBack_Category;
notification.alertBody =
[NSString stringWithFormat:NSLocalizedString(@"MSGVIEW_MISSED_CALL", nil), [thread name]];
}
[[PushManager sharedManager] presentNotification:notification];
}

Loading…
Cancel
Save