disable convo avatar

This commit is contained in:
Samuel Newman
2026-05-22 19:18:21 +03:00
parent 42d993a78f
commit ab2d8dfac4
+6 -5
View File
@@ -136,11 +136,12 @@ class NotificationService: UNNotificationServiceExtension {
// For group convos, attach the composite group avatar (rendered by the
// ogcard service) to the `speakableGroupName` parameter so iOS shows it
// alongside the sender on the Communication Notification.
if userInfo["convoKind"] as? String == "group",
let convoAvatarUrlString = userInfo["convoAvatarUrl"] as? String,
let groupImage = downloadAvatarImage(from: convoAvatarUrlString) {
intent.setImage(groupImage, forParameterNamed: \.speakableGroupName)
}
// Disabled: the composite avatar renders poorly at notification size.
// if userInfo["convoKind"] as? String == "group",
// let convoAvatarUrlString = userInfo["convoAvatarUrl"] as? String,
// let groupImage = downloadAvatarImage(from: convoAvatarUrlString) {
// intent.setImage(groupImage, forParameterNamed: \.speakableGroupName)
// }
let interaction = INInteraction(intent: intent, response: nil)
interaction.direction = .incoming