From 3330ca14dd78518d3d88c86294e9ff0dab03d74e Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Tue, 28 Oct 2025 00:24:55 +0800 Subject: [PATCH] :bug: Trying to fix the NSE again... --- ios/SolianNotificationService/NotificationService.swift | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/ios/SolianNotificationService/NotificationService.swift b/ios/SolianNotificationService/NotificationService.swift index baf127a4..c0f1f899 100644 --- a/ios/SolianNotificationService/NotificationService.swift +++ b/ios/SolianNotificationService/NotificationService.swift @@ -87,13 +87,8 @@ class NotificationService: UNNotificationServiceExtension { let intent = self.createMessageIntent(with: sender, meta: metaCopy, body: content.body) self.donateInteraction(for: intent) - let updatedContent = try? request.content.updating(from: intent) content.categoryIdentifier = "CHAT_MESSAGE" - if let updatedContent = updatedContent { - self.contentHandler?(updatedContent) - } else { - self.contentHandler?(content) - } + self.contentHandler?(content) }) } @@ -192,7 +187,7 @@ class NotificationService: UNNotificationServiceExtension { private func createMessageIntent(with sender: INPerson, meta: [AnyHashable: Any], body: String) -> INSendMessageIntent { INSendMessageIntent( recipients: nil, - outgoingMessageType: .outgoingMessageText, + outgoingMessageType: .incomingMessageText, content: body, speakableGroupName: meta["room_name"] != nil ? INSpeakableString(spokenPhrase: meta["room_name"] as! String) : nil, conversationIdentifier: "\(meta["room_id"] ?? "")",