From c12bf3a09832a5a473bbe67ecab51e1d31a5769e Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Tue, 14 Feb 2023 18:08:37 +0100 Subject: [PATCH] Group notification by status or account id --- IceCubesNotifications/NotificationService.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/IceCubesNotifications/NotificationService.swift b/IceCubesNotifications/NotificationService.swift index ac1100e6..3ff45526 100644 --- a/IceCubesNotifications/NotificationService.swift +++ b/IceCubesNotifications/NotificationService.swift @@ -88,6 +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 if type == .mention { bestAttemptContent.body = notification.body.escape() } else {