From ceaeb8e0b9aa960fb558bd83a20c4d251cbf8555 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:24:05 +0200 Subject: [PATCH 1/6] use GalleryContentView instead of --- .../ui/components/ZoomableContentView.kt | 74 ++++++++++++++++++- .../ui/screen/loggedIn/ProfileGallery.kt | 71 ++++++++++++------ 2 files changed, 122 insertions(+), 23 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt index 764680fb5..61bde3ef5 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt @@ -176,6 +176,70 @@ fun ZoomableContentView( } } +@Composable +fun GalleryContentView( + content: BaseMediaContent, + roundedCorner: Boolean, + isFiniteHeight: Boolean, + isFiniteWidth: Boolean, + accountViewModel: AccountViewModel, +) { + when (content) { + is MediaUrlImage -> + SensitivityWarning(content.contentWarning != null, accountViewModel) { + TwoSecondController(content) { controllerVisible -> + val mainImageModifier = Modifier.fillMaxWidth() + val loadedImageModifier = if (roundedCorner) MaterialTheme.colorScheme.imageModifier else Modifier.fillMaxWidth() + + UrlImageView(content, mainImageModifier, loadedImageModifier, isFiniteHeight, controllerVisible, accountViewModel = accountViewModel, gallery = true) + } + } + is MediaUrlVideo -> + SensitivityWarning(content.contentWarning != null, accountViewModel) { + Box(modifier = Modifier.fillMaxWidth(), contentAlignment = Alignment.Center) { + VideoView( + videoUri = content.url, + mimeType = content.mimeType, + title = content.description, + artworkUri = content.artworkUri, + gallery = true, + authorName = content.authorName, + dimensions = content.dim, + blurhash = content.blurhash, + roundedCorner = roundedCorner, + isFiniteHeight = isFiniteHeight, + nostrUriCallback = content.uri, + accountViewModel = accountViewModel, + ) + } + } + is MediaLocalImage -> + TwoSecondController(content) { controllerVisible -> + val mainImageModifier = Modifier.fillMaxWidth() + val loadedImageModifier = if (roundedCorner) MaterialTheme.colorScheme.imageModifier else Modifier.fillMaxWidth() + + LocalImageView(content, mainImageModifier, loadedImageModifier, isFiniteHeight, controllerVisible, accountViewModel = accountViewModel) + } + is MediaLocalVideo -> + content.localFile?.let { + Box(modifier = Modifier.fillMaxWidth(), contentAlignment = Alignment.Center) { + VideoView( + videoUri = it.toUri().toString(), + mimeType = content.mimeType, + title = content.description, + artworkUri = content.artworkUri, + authorName = content.authorName, + gallery = true, + roundedCorner = roundedCorner, + isFiniteHeight = isFiniteHeight, + nostrUriCallback = content.uri, + accountViewModel = accountViewModel, + ) + } + } + } +} + @Composable fun TwoSecondController( content: BaseMediaContent, @@ -303,6 +367,7 @@ fun UrlImageView( isFiniteHeight: Boolean, controllerVisible: MutableState, accountViewModel: AccountViewModel, + gallery: Boolean = false, alwayShowImage: Boolean = false, ) { Box(contentAlignment = Alignment.Center) { @@ -319,7 +384,14 @@ fun UrlImageView( SubcomposeAsyncImage( model = content.url, contentDescription = content.description, - contentScale = if (isFiniteHeight) ContentScale.Fit else ContentScale.FillWidth, + contentScale = + if (gallery) { + ContentScale.Crop + } else if (isFiniteHeight) { + ContentScale.Fit + } else { + ContentScale.FillWidth + }, modifier = mainImageModifier, ) { when (painter.state) { 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 fbf2af6a8..f35a46f32 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 @@ -45,18 +45,19 @@ import androidx.compose.ui.Alignment.Companion.BottomStart import androidx.compose.ui.Modifier import androidx.compose.ui.draw.clip import androidx.compose.ui.graphics.Color -import androidx.compose.ui.layout.ContentScale import androidx.compose.ui.tooling.preview.Preview import androidx.compose.ui.unit.dp import androidx.lifecycle.compose.collectAsStateWithLifecycle import androidx.lifecycle.distinctUntilChanged import androidx.lifecycle.map -import coil.compose.AsyncImage +import com.vitorpamplona.amethyst.commons.richtext.BaseMediaContent +import com.vitorpamplona.amethyst.commons.richtext.MediaUrlImage +import com.vitorpamplona.amethyst.commons.richtext.MediaUrlVideo import com.vitorpamplona.amethyst.commons.richtext.RichTextParser.Companion.isVideoUrl import com.vitorpamplona.amethyst.model.Note import com.vitorpamplona.amethyst.ui.actions.CrossfadeIfEnabled +import com.vitorpamplona.amethyst.ui.components.GalleryContentView import com.vitorpamplona.amethyst.ui.components.SensitivityWarning -import com.vitorpamplona.amethyst.ui.components.VideoView import com.vitorpamplona.amethyst.ui.note.CheckHiddenFeedWatchBlockAndReport import com.vitorpamplona.amethyst.ui.note.ClickableNote import com.vitorpamplona.amethyst.ui.note.LongPressToQuickActionGallery @@ -332,27 +333,53 @@ fun InnerRenderGalleryThumb( contentAlignment = BottomStart, ) { card.image?.let { - if (isVideoUrl(it)) { - VideoView( - videoUri = it, - mimeType = null, - title = "", - authorName = note.author?.toBestDisplayName(), - roundedCorner = false, - gallery = true, - isFiniteHeight = false, - alwaysShowVideo = true, - accountViewModel = accountViewModel, - ) - } else { - AsyncImage( - model = it, - contentDescription = null, - contentScale = ContentScale.Crop, - modifier = Modifier.fillMaxSize(), - ) + var blurHash: String? = null + if ((note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash() != null) { + blurHash = (note.associatedNote?.event as ProfileGalleryEntryEvent).blurhash() } + + var fullUrl = it + var description = (note.associatedNote?.event as ProfileGalleryEntryEvent).content + 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, + description = description, + hash = null, + blurhash = blurHash, + dim = dimensions, + uri = null, + mimeType = mimeType, + ) + } else { + content = + MediaUrlImage( + url = fullUrl, + description = description, + hash = null, // We don't want to show the hash banner here + blurhash = blurHash, + dim = dimensions, + uri = null, + mimeType = mimeType, + ) + } + + GalleryContentView( + content = content, + roundedCorner = false, + isFiniteHeight = false, + isFiniteWidth = false, + accountViewModel = accountViewModel, + ) } + // } ?: run { DisplayGalleryAuthorBanner(note) } } } From 856eb0da052cbd735313069d9700cbd4fb743d0e Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:40:59 +0200 Subject: [PATCH 2/6] create GalleryFeed earlier --- .../ui/screen/loggedIn/ProfileScreen.kt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt index 5b84bfc57..867e5ae0f 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt @@ -240,6 +240,16 @@ fun PrepareViewModels( ), ) + val galleryFeedViewModel: NostrUserProfileGalleryFeedViewModel = + viewModel( + key = baseUser.pubkeyHex + "UserGalleryFeedViewModel", + factory = + NostrUserProfileGalleryFeedViewModel.Factory( + baseUser, + accountViewModel.account, + ), + ) + val followersFeedViewModel: NostrUserProfileFollowersUserFeedViewModel = viewModel( key = baseUser.pubkeyHex + "UserProfileFollowersUserFeedViewModel", @@ -298,16 +308,6 @@ fun PrepareViewModels( ), ) - val galleryFeedViewModel: NostrUserProfileGalleryFeedViewModel = - viewModel( - key = baseUser.pubkeyHex + "UserGalleryFeedViewModel", - factory = - NostrUserProfileGalleryFeedViewModel.Factory( - baseUser, - accountViewModel.account, - ), - ) - val reportsFeedViewModel: NostrUserProfileReportFeedViewModel = viewModel( key = baseUser.pubkeyHex + "UserProfileReportFeedViewModel", From 1a4396dbe3974034d4f8835928a88fbe5d672d90 Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 31 Jul 2024 11:51:44 +0200 Subject: [PATCH 3/6] removes unneded variable --- .../vitorpamplona/amethyst/ui/components/ZoomableContentView.kt | 1 - .../vitorpamplona/amethyst/ui/screen/loggedIn/ProfileGallery.kt | 1 - 2 files changed, 2 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt index 61bde3ef5..5917bcf97 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/components/ZoomableContentView.kt @@ -181,7 +181,6 @@ fun GalleryContentView( content: BaseMediaContent, roundedCorner: Boolean, isFiniteHeight: Boolean, - isFiniteWidth: Boolean, accountViewModel: AccountViewModel, ) { when (content) { 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 f35a46f32..1cd04e7df 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 @@ -375,7 +375,6 @@ fun InnerRenderGalleryThumb( content = content, roundedCorner = false, isFiniteHeight = false, - isFiniteWidth = false, accountViewModel = accountViewModel, ) } 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 4/6] 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, From f06c3f73769f1c0fa8594fab369a0ae98aa9adea Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:55:02 +0200 Subject: [PATCH 5/6] massive speed up of rendering the gallery --- .../com/vitorpamplona/amethyst/model/Note.kt | 2 - .../ui/dal/UserProfileGalleryFeedFilter.kt | 11 +--- .../ui/screen/loggedIn/ProfileGallery.kt | 63 ++++++++++--------- .../ui/screen/loggedIn/ProfileScreen.kt | 1 - 4 files changed, 35 insertions(+), 42 deletions(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt index a5118c559..055476c11 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/model/Note.kt @@ -139,8 +139,6 @@ open class Note( var relays = listOf() private set - var associatedNote: Note? = null - var lastReactionsDownloadTime: Map = emptyMap() fun id() = Hex.decode(idHex) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/UserProfileGalleryFeedFilter.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/UserProfileGalleryFeedFilter.kt index 5b84eeacf..9ee41fac6 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/UserProfileGalleryFeedFilter.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/dal/UserProfileGalleryFeedFilter.kt @@ -47,16 +47,7 @@ class UserProfileGalleryFeedFilter( } var sorted = sort(notes) - var finalnotes = setOf() - for (item in sorted) { - val note = (item.event as ProfileGalleryEntryEvent).event()?.let { LocalCache.checkGetOrCreateNote(it) } - if (note != null) { - note.associatedNote = item - finalnotes = finalnotes + note - } - } - - return finalnotes.toList() + return sorted.toList() } override fun applyFilter(collection: Set): Set = innerApplyFilter(collection) 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 74f3ae4d1..0dc63b70b 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 @@ -54,6 +54,7 @@ import com.vitorpamplona.amethyst.commons.richtext.BaseMediaContent import com.vitorpamplona.amethyst.commons.richtext.MediaUrlImage import com.vitorpamplona.amethyst.commons.richtext.MediaUrlVideo import com.vitorpamplona.amethyst.commons.richtext.RichTextParser.Companion.isVideoUrl +import com.vitorpamplona.amethyst.model.LocalCache import com.vitorpamplona.amethyst.model.Note import com.vitorpamplona.amethyst.ui.actions.CrossfadeIfEnabled import com.vitorpamplona.amethyst.ui.components.GalleryContentView @@ -80,7 +81,6 @@ import com.vitorpamplona.quartz.events.ProfileGalleryEntryEvent fun RenderGalleryFeed( viewModel: FeedViewModel, routeForLastRead: String?, - forceEventKind: Int?, listState: LazyGridState, accountViewModel: AccountViewModel, nav: (String) -> Unit, @@ -104,7 +104,6 @@ fun RenderGalleryFeed( state, routeForLastRead, listState, - forceEventKind, accountViewModel, nav, ) @@ -122,7 +121,6 @@ private fun GalleryFeedLoaded( state: FeedState.Loaded, routeForLastRead: String?, listState: LazyGridState, - forceEventKind: Int?, accountViewModel: AccountViewModel, nav: (String) -> Unit, ) { @@ -139,7 +137,6 @@ private fun GalleryFeedLoaded( baseNote = item, routeForLastRead = routeForLastRead, modifier = Modifier, - forceEventKind = forceEventKind, accountViewModel = accountViewModel, nav = nav, ) @@ -158,7 +155,6 @@ fun GalleryCardCompose( routeForLastRead: String? = null, modifier: Modifier = Modifier, parentBackgroundColor: MutableState? = null, - forceEventKind: Int?, isHiddenFeed: Boolean = false, accountViewModel: AccountViewModel, nav: (String) -> Unit, @@ -173,20 +169,29 @@ fun GalleryCardCompose( nav = nav, ) { canPreview -> - if (baseNote.associatedNote != null) { - if (baseNote.associatedNote!!.event != null) { - val image = (baseNote.associatedNote!!.event as ProfileGalleryEntryEvent).url() - if (image != null) { - GalleryCard( - galleryNote = baseNote.associatedNote!!, - baseNote = baseNote, - image = image, - modifier = modifier, - parentBackgroundColor = parentBackgroundColor, - accountViewModel = accountViewModel, - nav = nav, - ) - } + // TODO Vitor, this works, but maybe you know of a better way to run this here in the background + // as LocalCache.checkGetOrCreateNote(it) can not run on the main thread + var note: Note? = null + val thread = + Thread { + note = (baseNote.event as ProfileGalleryEntryEvent).event()?.let { LocalCache.checkGetOrCreateNote(it) } + } + thread.start() + thread.join() + // TODO End + + val image = (baseNote.event as ProfileGalleryEntryEvent).url() + if (image != null) { + note?.let { + GalleryCard( + galleryNote = baseNote, + baseNote = it, + image = image, + modifier = modifier, + parentBackgroundColor = parentBackgroundColor, + accountViewModel = accountViewModel, + nav = nav, + ) } } } @@ -207,6 +212,7 @@ fun GalleryCard( LongPressToQuickActionGallery(baseNote = galleryNote, accountViewModel = accountViewModel) { showPopup -> CheckNewAndRenderChannelCard( baseNote, + galleryNote, image, modifier, parentBackgroundColor, @@ -220,6 +226,7 @@ fun GalleryCard( @Composable private fun CheckNewAndRenderChannelCard( baseNote: Note, + galleryNote: Note, image: String, modifier: Modifier = Modifier, parentBackgroundColor: MutableState? = null, @@ -233,6 +240,7 @@ private fun CheckNewAndRenderChannelCard( parentBackgroundColor = parentBackgroundColor, accountViewModel = accountViewModel, ) + println("NOTE:" + (baseNote.event?.id() ?: "nah")) ClickableNote( baseNote = baseNote, @@ -242,7 +250,7 @@ private fun CheckNewAndRenderChannelCard( showPopup = showPopup, nav = nav, ) { - InnerGalleryCardBox(baseNote, image, accountViewModel, nav) + InnerGalleryCardBox(galleryNote, image, accountViewModel, nav) } } @@ -268,7 +276,6 @@ data class GalleryThumb( val id: String?, val image: String?, val title: String?, - // val price: Price?, ) @Composable @@ -288,7 +295,6 @@ fun RenderGalleryThumb( image = image, title = "", // noteEvent?.title(), - // price = noteEvent?.price(), ) }.distinctUntilChanged() .observeAsState( @@ -299,7 +305,7 @@ fun RenderGalleryThumb( ), ) - InnerRenderGalleryThumb(card as GalleryThumb, baseNote, accountViewModel) + InnerRenderGalleryThumb(card, baseNote, accountViewModel) } @Preview @@ -312,7 +318,6 @@ fun RenderGalleryThumbPreview(accountViewModel: AccountViewModel) { id = "", image = null, title = "Like New", - // price = Price("800000", "SATS", null), ), note = Note("hex"), accountViewModel = accountViewModel, @@ -333,11 +338,11 @@ fun InnerRenderGalleryThumb( contentAlignment = BottomStart, ) { card.image?.let { - 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 dimensions = (note.associatedNote?.event as ProfileGalleryEntryEvent).dimensions() - var mimeType = (note.associatedNote?.event as ProfileGalleryEntryEvent).mimeType() + var blurHash = (note.event as ProfileGalleryEntryEvent).blurhash() + var description = (note.event as ProfileGalleryEntryEvent).content + // var hash = (note.event as ProfileGalleryEntryEvent).hash() + var dimensions = (note.event as ProfileGalleryEntryEvent).dimensions() + var mimeType = (note.event as ProfileGalleryEntryEvent).mimeType() var content: BaseMediaContent? = null if (isVideoUrl(it)) { diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt index 867e5ae0f..57b0a481b 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/ProfileScreen.kt @@ -1574,7 +1574,6 @@ fun TabGallery( RenderGalleryFeed( feedViewModel, null, - 0, listState, accountViewModel = accountViewModel, nav = nav, From d1b44c0ac0ad61d54762bfb5c0d4df1c40f69e0e Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Wed, 31 Jul 2024 12:59:23 +0200 Subject: [PATCH 6/6] remove print --- .../vitorpamplona/amethyst/ui/screen/loggedIn/ProfileGallery.kt | 1 - 1 file changed, 1 deletion(-) 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 0dc63b70b..00187f905 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 @@ -240,7 +240,6 @@ private fun CheckNewAndRenderChannelCard( parentBackgroundColor = parentBackgroundColor, accountViewModel = accountViewModel, ) - println("NOTE:" + (baseNote.event?.id() ?: "nah")) ClickableNote( baseNote = baseNote,