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
|
// For group convos, attach the composite group avatar (rendered by the
|
||||||
// ogcard service) to the `speakableGroupName` parameter so iOS shows it
|
// ogcard service) to the `speakableGroupName` parameter so iOS shows it
|
||||||
// alongside the sender on the Communication Notification.
|
// alongside the sender on the Communication Notification.
|
||||||
if userInfo["convoKind"] as? String == "group",
|
// Disabled: the composite avatar renders poorly at notification size.
|
||||||
let convoAvatarUrlString = userInfo["convoAvatarUrl"] as? String,
|
// if userInfo["convoKind"] as? String == "group",
|
||||||
let groupImage = downloadAvatarImage(from: convoAvatarUrlString) {
|
// let convoAvatarUrlString = userInfo["convoAvatarUrl"] as? String,
|
||||||
intent.setImage(groupImage, forParameterNamed: \.speakableGroupName)
|
// let groupImage = downloadAvatarImage(from: convoAvatarUrlString) {
|
||||||
}
|
// intent.setImage(groupImage, forParameterNamed: \.speakableGroupName)
|
||||||
|
// }
|
||||||
|
|
||||||
let interaction = INInteraction(intent: intent, response: nil)
|
let interaction = INInteraction(intent: intent, response: nil)
|
||||||
interaction.direction = .incoming
|
interaction.direction = .incoming
|
||||||
|
|||||||
Reference in New Issue
Block a user