Group notification by type instead

This commit is contained in:
Thomas Ricouard 2023-02-14 18:55:26 +01:00
parent c12bf3a098
commit 2c8703281e

View File

@ -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 {