From 6638ae1d7b5168607fd9a3a01db1fa506db88acb Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 21 Sep 2023 09:20:11 -0400 Subject: [PATCH] no need for coroutines on nav anymore --- .../amethyst/ui/screen/loggedIn/VideoScreen.kt | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/VideoScreen.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/VideoScreen.kt index 04231840f..0234adcd6 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/VideoScreen.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/VideoScreen.kt @@ -445,14 +445,11 @@ fun ReactionsColumn(baseNote: Note, accountViewModel: AccountViewModel, nav: (St Spacer(modifier = Modifier.height(8.dp)) Column(horizontalAlignment = Alignment.CenterHorizontally, modifier = Modifier.padding(bottom = 75.dp, end = 20.dp)) { - val scope = rememberCoroutineScope() ReplyReaction(baseNote, grayTint = MaterialTheme.colors.onBackground, accountViewModel, iconSize = 40.dp) { - scope.launch { - routeFor( - baseNote, - accountViewModel.userProfile() - )?.let { nav(it) } - } + routeFor( + baseNote, + accountViewModel.userProfile() + )?.let { nav(it) } } BoostReaction(baseNote, grayTint = MaterialTheme.colors.onBackground, accountViewModel, iconSize = 40.dp) { wantsToQuote = baseNote