From edb834db384d7a10bfcf1aab9d1ad9cb561d278e Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 15 Jul 2024 15:32:59 -0400 Subject: [PATCH] Fixes a bug on clicking the user profile but loading the wrong one --- .../com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt index 8d2167580..c3ddbc8e3 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/UserProfilePicture.kt @@ -152,7 +152,7 @@ fun ClickableUserPicture( ) { // BaseUser is the same reference as accountState.user val myModifier = - remember { + remember(baseUser) { if (onClick != null && onLongClick != null) { Modifier .size(size)