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:
@@ -76,7 +76,8 @@ class NotificationService: UNNotificationServiceExtension {
|
|||||||
avatarImage = downloadAvatarImage(from: avatarUrlString)
|
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(
|
let sender = INPerson(
|
||||||
personHandle: senderHandle,
|
personHandle: senderHandle,
|
||||||
nameComponents: nil,
|
nameComponents: nil,
|
||||||
|
|||||||
Reference in New Issue
Block a user