mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-10 18:33:51 +02:00
Resets mentions to avoid marking users in new posts from an old reply.
This commit is contained in:
@@ -102,6 +102,7 @@ class NewPostViewModel: ViewModel() {
|
|||||||
message = TextFieldValue("")
|
message = TextFieldValue("")
|
||||||
urlPreview = null
|
urlPreview = null
|
||||||
isUploadingImage = false
|
isUploadingImage = false
|
||||||
|
mentions = null
|
||||||
}
|
}
|
||||||
|
|
||||||
fun upload(it: Uri, context: Context) {
|
fun upload(it: Uri, context: Context) {
|
||||||
@@ -128,6 +129,7 @@ class NewPostViewModel: ViewModel() {
|
|||||||
message = TextFieldValue("")
|
message = TextFieldValue("")
|
||||||
urlPreview = null
|
urlPreview = null
|
||||||
isUploadingImage = false
|
isUploadingImage = false
|
||||||
|
mentions = null
|
||||||
}
|
}
|
||||||
|
|
||||||
fun findUrlInMessage(): String? {
|
fun findUrlInMessage(): String? {
|
||||||
|
Reference in New Issue
Block a user