sdk: update to 25.04.14

This commit is contained in:
Mauro Romito
2025-04-14 11:13:49 +02:00
committed by Mauro
parent 4f4729b8df
commit 9d53b29902
12 changed files with 119 additions and 21 deletions
+3 -3
View File
@@ -106,9 +106,9 @@ struct NotificationContentBuilder {
let displayName = notificationItem.senderDisplayName ?? notificationItem.roomDisplayName
notification.body = String(messageEventStringBuilder.buildAttributedString(for: messageType, senderDisplayName: displayName).characters)
// For now we are fine hiding all images if the visibility is not `always` while we wait for an `isPublic` flag
// to be implemented in the SDK.
guard settings.timelineMediaVisibility == .always else { return notification }
guard settings.timelineMediaVisibility == .always ||
(settings.timelineMediaVisibility == .privateOnly && notificationItem.isRoomPrivate)
else { return notification }
switch messageType {
case .image(content: let content):