From c0946f5c0ee8147244419aa5908aedc3bccaee2d Mon Sep 17 00:00:00 2001 From: Ryo Kanbayashi Date: Wed, 19 Apr 2023 22:50:32 +0900 Subject: [PATCH] fix bug: quote repost is tied up to a post which is replyed a little while ago. (2) --- .../com/vitorpamplona/amethyst/ui/actions/NewPostViewModel.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 e924b0627..8be28a491 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 @@ -72,14 +72,13 @@ open class NewPostViewModel : ViewModel() { this.mentions = currentMentions.plus(replyUser) } } - } ?: { + } ?: run { replyTos = null mentions = null } quote?.let { message = TextFieldValue(message.text + "\n\n@${it.idNote()}") - this.replyTos = emptyList() } canAddInvoice = account.userProfile().info?.lnAddress() != null