Resets mentions to avoid marking users in new posts from an old reply.

This commit is contained in:
Vitor Pamplona
2023-02-20 14:41:50 -05:00
parent 8db743c1e3
commit 70c20fbb6d

View File

@@ -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? {