Show account in notification at all time

This commit is contained in:
Thomas Ricouard 2023-01-26 18:27:37 +01:00
parent a10e3d239b
commit 377374d34f

View file

@ -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"))