disable convo avatar
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user