Skip to content

Commit

Permalink
Removes unnecessary id that was causing crashes.
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorpamplona committed Jul 16, 2024
1 parent 60e8ae7 commit 197484d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<BaseMediaContent>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand All @@ -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)
Expand All @@ -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,
Expand Down

0 comments on commit 197484d

Please sign in to comment.