From 377374d34fa04c8d51c1ada4bea37d5df45dc0f6 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Thu, 26 Jan 2023 18:27:37 +0100 Subject: [PATCH] Show account in notification at all time --- IceCubesNotifications/NotificationService.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/IceCubesNotifications/NotificationService.swift b/IceCubesNotifications/NotificationService.swift index 81af354e..a7216a2e 100644 --- a/IceCubesNotifications/NotificationService.swift +++ b/IceCubesNotifications/NotificationService.swift @@ -53,9 +53,7 @@ class NotificationService: UNNotificationServiceExtension { } bestAttemptContent.title = notification.title - if AppAccountsManager.shared.availableAccounts.count > 1 { - bestAttemptContent.subtitle = bestAttemptContent.userInfo["i"] as? String ?? "" - } + bestAttemptContent.subtitle = bestAttemptContent.userInfo["i"] as? String ?? "" bestAttemptContent.body = notification.body.escape() bestAttemptContent.userInfo["plaintext"] = plaintextData bestAttemptContent.sound = UNNotificationSound(named: UNNotificationSoundName(rawValue: "glass.wav"))