From 197484dc1b21d21168a4b10ee25589b0b623e2b9 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 16 Jul 2024 19:23:26 -0400 Subject: [PATCH] Removes unnecessary id that was causing crashes. --- .../java/com/vitorpamplona/amethyst/ui/note/types/Video.kt | 1 - .../amethyst/commons/richtext/MediaContentModels.kt | 3 --- 2 files changed, 4 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Video.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Video.kt index 0f43d93c2..080aca811 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Video.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/types/Video.kt @@ -86,7 +86,6 @@ fun VideoDisplay( val description = event.content.ifBlank { null } ?: event.alt() val isImage = event.mimeType()?.startsWith("image/") == true || RichTextParser.isImageUrl(fullUrl) val uri = note.toNostrUri() - val id = note.id() val mimeType = event.mimeType() mutableStateOf( diff --git a/commons/src/main/java/com/vitorpamplona/amethyst/commons/richtext/MediaContentModels.kt b/commons/src/main/java/com/vitorpamplona/amethyst/commons/richtext/MediaContentModels.kt index 28ee73ee7..acee3f8ee 100644 --- a/commons/src/main/java/com/vitorpamplona/amethyst/commons/richtext/MediaContentModels.kt +++ b/commons/src/main/java/com/vitorpamplona/amethyst/commons/richtext/MediaContentModels.kt @@ -38,7 +38,6 @@ abstract class MediaUrlContent( dim: String? = null, blurhash: String? = null, val uri: String? = null, - val id: String? = null, val mimeType: String? = null, ) : BaseMediaContent(description, dim, blurhash) @@ -50,7 +49,6 @@ class MediaUrlImage( blurhash: String? = null, dim: String? = null, uri: String? = null, - id: String? = null, val contentWarning: String? = null, mimeType: String? = null, ) : MediaUrlContent(url, description, hash, dim, blurhash, uri, mimeType) @@ -62,7 +60,6 @@ class MediaUrlVideo( hash: String? = null, dim: String? = null, uri: String? = null, - id: String? = null, val artworkUri: String? = null, val authorName: String? = null, blurhash: String? = null,