mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-25 09:41:02 +00:00
Group notification by type instead
This commit is contained in:
parent
c12bf3a098
commit
2c8703281e
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class NotificationService: UNNotificationServiceExtension {
|
||||||
currentUser: bestAttemptContent.userInfo["i"] as? String ?? "",
|
currentUser: bestAttemptContent.userInfo["i"] as? String ?? "",
|
||||||
avatarURL: fileURL)
|
avatarURL: fileURL)
|
||||||
bestAttemptContent = try bestAttemptContent.updating(from: intent) as! UNMutableNotificationContent
|
bestAttemptContent = try bestAttemptContent.updating(from: intent) as! UNMutableNotificationContent
|
||||||
bestAttemptContent.threadIdentifier = remoteNotification.status?.id ?? remoteNotification.account.id
|
bestAttemptContent.threadIdentifier = remoteNotification.type
|
||||||
if type == .mention {
|
if type == .mention {
|
||||||
bestAttemptContent.body = notification.body.escape()
|
bestAttemptContent.body = notification.body.escape()
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue