From 557ba959e24e1f232dba5b35d132e20b6996583b Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 12 Sep 2025 14:17:41 -0400 Subject: [PATCH] Fixes crash on dont translate from --- .../amethyst/ui/components/TranslatableRichTextViewer.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/amethyst/src/play/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt b/amethyst/src/play/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt index 0a0d3f2ec..20c9b19cd 100644 --- a/amethyst/src/play/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt +++ b/amethyst/src/play/java/com/vitorpamplona/amethyst/ui/components/TranslatableRichTextViewer.kt @@ -215,10 +215,8 @@ private fun TranslationMessage( } }, onClick = { - scope.launch(Dispatchers.IO) { - accountViewModel.account.toggleDontTranslateFrom(source) - langSettingsPopupExpanded = false - } + accountViewModel.toggleDontTranslateFrom(source) + langSettingsPopupExpanded = false }, ) HorizontalDivider(thickness = DividerThickness)