From 53a320b4dcfaf7caecafd7e20ee801ea5b6c0cb3 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 29 Dec 2023 19:43:14 -0500 Subject: [PATCH] no need to remember the showProfilePicture state --- .../amethyst/ui/note/ChatroomMessageCompose.kt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ChatroomMessageCompose.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ChatroomMessageCompose.kt index 85018bdd2..becbe9f89 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ChatroomMessageCompose.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/note/ChatroomMessageCompose.kt @@ -399,15 +399,11 @@ private fun MessageBubbleLines( bubbleSize: MutableState, availableBubbleSize: MutableState ) { - val automaticallyShowProfilePicture = remember { - accountViewModel.settings.showProfilePictures.value - } - if (drawAuthorInfo) { DrawAuthorInfo( baseNote, alignment, - automaticallyShowProfilePicture, + accountViewModel.settings.showProfilePictures.value, nav ) } else {