diff --git a/ios/SolianNotificationService/NotificationService.swift b/ios/SolianNotificationService/NotificationService.swift index 47944b0d..07a54809 100644 --- a/ios/SolianNotificationService/NotificationService.swift +++ b/ios/SolianNotificationService/NotificationService.swift @@ -47,6 +47,7 @@ class NotificationService: UNNotificationServiceExtension { private func processNotification(request: UNNotificationRequest, content: UNMutableNotificationContent) throws { switch content.userInfo["type"] as? String { case "messages.new": + content.categoryIdentifier = "REPLYABLE_MESSAGE" try handleMessagingNotification(request: request, content: content) default: try handleDefaultNotification(content: content) @@ -60,8 +61,6 @@ class NotificationService: UNNotificationServiceExtension { let pfpIdentifier = meta["pfp"] as? String - content.categoryIdentifier = "REPLYABLE_MESSAGE" - let metaCopy = meta as? [String: Any] ?? [:] let pfpUrl = pfpIdentifier != nil ? getAttachmentUrl(for: pfpIdentifier!) : nil