From 2c8703281eec05c01d8d1f38be772b200696c203 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Tue, 14 Feb 2023 18:55:26 +0100 Subject: [PATCH] Group notification by type instead --- IceCubesNotifications/NotificationService.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IceCubesNotifications/NotificationService.swift b/IceCubesNotifications/NotificationService.swift index 3ff45526..a3ca5ab7 100644 --- a/IceCubesNotifications/NotificationService.swift +++ b/IceCubesNotifications/NotificationService.swift @@ -88,7 +88,7 @@ class NotificationService: UNNotificationServiceExtension { currentUser: bestAttemptContent.userInfo["i"] as? String ?? "", avatarURL: fileURL) bestAttemptContent = try bestAttemptContent.updating(from: intent) as! UNMutableNotificationContent - bestAttemptContent.threadIdentifier = remoteNotification.status?.id ?? remoteNotification.account.id + bestAttemptContent.threadIdentifier = remoteNotification.type if type == .mention { bestAttemptContent.body = notification.body.escape() } else {