Skip to content

Commit 0e05129

Browse files
committed
[trello.com/c/aZtAfZ44] fix message replace
1 parent 2aa72c4 commit 0e05129

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

NotificationServiceExtension/NotificationService.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,11 @@ class NotificationService: UNNotificationServiceExtension {
337337
var badgeValue = (Int(SecureStore.get(StoreKey.notificationsService.customBadgeNumber) ?? "0") ?? 0)
338338
if !shouldIgnoreNotification {
339339
badgeValue += 1
340-
bestAttemptContent.userInfo[AdamantNotificationUserInfoKeys.decodedMessage] = decodedMessage
340+
} else {
341+
bestAttemptContent.body = ""
341342
}
342343

344+
bestAttemptContent.userInfo[AdamantNotificationUserInfoKeys.decodedMessage] = decodedMessage
343345
bestAttemptContent.badge = NSNumber(value: badgeValue)
344346
SecureStore.set(String(badgeValue), for: StoreKey.notificationsService.customBadgeNumber)
345347

0 commit comments

Comments
 (0)