From 70c20fbb6dd44e10b77cb2f2a5fb999b2ff80fce Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 20 Feb 2023 14:41:50 -0500 Subject: [PATCH] Resets mentions to avoid marking users in new posts from an old reply. --- .../com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt b/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt index 218926b1d..6dcf25aae 100644 --- a/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt +++ b/app/src/main/java/com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt @@ -102,6 +102,7 @@ class NewPostViewModel: ViewModel() { message = TextFieldValue("") urlPreview = null isUploadingImage = false + mentions = null } fun upload(it: Uri, context: Context) { @@ -128,6 +129,7 @@ class NewPostViewModel: ViewModel() { message = TextFieldValue("") urlPreview = null isUploadingImage = false + mentions = null } fun findUrlInMessage(): String? {