🐛 Fix NSE failed compiling
This commit is contained in:
@@ -85,8 +85,6 @@ class NotificationService: UNNotificationServiceExtension {
|
|||||||
customIdentifier: nil
|
customIdentifier: nil
|
||||||
)
|
)
|
||||||
|
|
||||||
let intent = self.createMessageIntent(with: sender, meta: metaCopy, body: content.body)
|
|
||||||
self.donateInteraction(for: intent)
|
|
||||||
content.categoryIdentifier = "CHAT_MESSAGE"
|
content.categoryIdentifier = "CHAT_MESSAGE"
|
||||||
self.contentHandler?(content)
|
self.contentHandler?(content)
|
||||||
})
|
})
|
||||||
@@ -187,7 +185,7 @@ class NotificationService: UNNotificationServiceExtension {
|
|||||||
private func createMessageIntent(with sender: INPerson, meta: [AnyHashable: Any], body: String) -> INSendMessageIntent {
|
private func createMessageIntent(with sender: INPerson, meta: [AnyHashable: Any], body: String) -> INSendMessageIntent {
|
||||||
INSendMessageIntent(
|
INSendMessageIntent(
|
||||||
recipients: nil,
|
recipients: nil,
|
||||||
outgoingMessageType: .incomingMessageText,
|
outgoingMessageType: .outgoingMessageText,
|
||||||
content: body,
|
content: body,
|
||||||
speakableGroupName: meta["room_name"] != nil ? INSpeakableString(spokenPhrase: meta["room_name"] as! String) : nil,
|
speakableGroupName: meta["room_name"] != nil ? INSpeakableString(spokenPhrase: meta["room_name"] as! String) : nil,
|
||||||
conversationIdentifier: "\(meta["room_id"] ?? "")",
|
conversationIdentifier: "\(meta["room_id"] ?? "")",
|
||||||
|
|||||||
Reference in New Issue
Block a user