From 9dfdee6fb0c5dc5672ed9af99bc8f4f1a571ab15 Mon Sep 17 00:00:00 2001 From: Niels Andriesse Date: Wed, 23 Sep 2020 16:29:58 +1000 Subject: [PATCH] Minor refactoring --- .../NotificationServiceExtension.swift | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LokiPushNotificationService/NotificationServiceExtension.swift b/LokiPushNotificationService/NotificationServiceExtension.swift index e62aa882e..9592787e8 100644 --- a/LokiPushNotificationService/NotificationServiceExtension.swift +++ b/LokiPushNotificationService/NotificationServiceExtension.swift @@ -115,13 +115,15 @@ final class NotificationServiceExtension : UNNotificationServiceExtension { if let notificationType = notificationPreference?.notificationPreviewType() { switch notificationType { case .nameNoPreview: - notificationContent.body = "New Message!" + notificationContent.body = "New Message" case .noNameNoPreview: notificationContent.title = "" - notificationContent.body = "New Message!" + notificationContent.body = "New Message" default: notificationContent.body = newNotificationBody } + } else { + notificationContent.body = newNotificationBody } if notificationContent.body.count < 1 {