From b8e10b040d8cf44e49bb90b03ba034b9cda8922e Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:02:39 +0200 Subject: [PATCH] cleanup --- .../amethyst/ui/screen/loggedIn/ProfileGallery.kt | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileGallery.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileGallery.kt index 1cd04e7df..74f3ae4d1 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileGallery.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileGallery.kt @@ -333,24 +333,17 @@ fun InnerRenderGalleryThumb( contentAlignment = BottomStart, ) { card.image?.let { - var blurHash: String? = null - if ((note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash() != null) { - blurHash = (note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash() - } - - var fullUrl = it + var blurHash = (note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash() var description = (note.associatedNote?.event as ProfileGalleryEntryEvent).content - var hash = (note.associatedNote?.event as ProfileGalleryEntryEvent).hash() + // var hash = (note.associatedNote?.event as ProfileGalleryEntryEvent).hash() var dimensions = (note.associatedNote?.event as ProfileGalleryEntryEvent).dimensions() var mimeType = (note.associatedNote?.event as ProfileGalleryEntryEvent).mimeType() - - // var content = Im(null, "10x10", blurhash = blurhash) var content: BaseMediaContent? = null if (isVideoUrl(it)) { content = MediaUrlVideo( - url = fullUrl, + url = it, description = description, hash = null, blurhash = blurHash, @@ -361,7 +354,7 @@ fun InnerRenderGalleryThumb( } else { content = MediaUrlImage( - url = fullUrl, + url = it, description = description, hash = null, // We don't want to show the hash banner here blurhash = blurHash,