use sender handle in INPersonHandle for communication notifications

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Samuel Newman
2026-04-22 14:41:50 +03:00
parent 02ca0516ab
commit c01d023411
+2 -1
View File
@@ -76,7 +76,8 @@ class NotificationService: UNNotificationServiceExtension {
avatarImage = downloadAvatarImage(from: avatarUrlString)
}
let senderHandle = INPersonHandle(value: nil, type: .unknown)
let senderHandleValue = userInfo["senderHandle"] as? String
let senderHandle = INPersonHandle(value: senderHandleValue, type: .unknown)
let sender = INPerson(
personHandle: senderHandle,
nameComponents: nil,