From b07888e807ccf30006555c355c43fd4c5d2ccd14 Mon Sep 17 00:00:00 2001 From: Marco Antonio Alvarez Date: Sat, 4 Jan 2025 19:41:04 +0100 Subject: [PATCH 1/2] If there's no mime type in the sticker event we can safely assume it's an image anyway. Signed-off-by: Marco Antonio Alvarez --- .../factories/event/TimelineItemContentStickerFactory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentStickerFactory.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentStickerFactory.kt index 0d725d0e29..eaa124c9dd 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentStickerFactory.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/factories/event/TimelineItemContentStickerFactory.kt @@ -39,7 +39,7 @@ class TimelineItemContentStickerFactory @Inject constructor( isEdited = false, mediaSource = content.source, thumbnailSource = content.info.thumbnailSource, - mimeType = content.info.mimetype ?: MimeTypes.OctetStream, + mimeType = content.info.mimetype ?: MimeTypes.Images, blurhash = content.info.blurhash, width = content.info.width?.toInt(), height = content.info.height?.toInt(), From e65f9c8e472c64266cf64d24f0adab62b6cdc66d Mon Sep 17 00:00:00 2001 From: Marco Antonio Alvarez Date: Sat, 4 Jan 2025 20:02:38 +0100 Subject: [PATCH 2/2] sign off Signed-off-by: Marco Antonio Alvarez