Showing the iOS default silhoutte when the user/room avatar is missing (#965)

* fix

* Element X app name

* project update

* improvement
This commit is contained in:
Mauro
2023-05-29 10:41:01 +02:00
committed by GitHub
parent 590655197d
commit ce6d68614a
8 changed files with 15 additions and 8 deletions
@@ -123,7 +123,7 @@ extension UNMutableNotificationContent {
senderID: String,
senderName: String,
iconType: NotificationIconType) async throws -> UNMutableNotificationContent {
var image: INImage?
var image = INImage(named: "")
if let mediaSource = iconType.mediaSource {
switch await mediaProvider?.loadImageDataFromSource(mediaSource) {
case .success(let data):
@@ -161,7 +161,7 @@ extension UNMutableNotificationContent {
serviceName: nil,
sender: sender,
attachments: nil)
if speakableGroupName != nil, let image {
if speakableGroupName != nil {
intent.setImage(image, forParameterNamed: \.speakableGroupName)
}