diff --git a/Signal/src/environment/NotificationsManager.m b/Signal/src/environment/NotificationsManager.m index b9bcd9fd3..8a206b168 100644 --- a/Signal/src/environment/NotificationsManager.m +++ b/Signal/src/environment/NotificationsManager.m @@ -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]; }