fix bug: quote repost is tied up to a post which is replyed a little while ago. (2)

This commit is contained in:
Ryo Kanbayashi
2023-04-19 22:50:32 +09:00
parent 180083147d
commit c0946f5c0e

View File

@@ -72,14 +72,13 @@ open class NewPostViewModel : ViewModel() {
this.mentions = currentMentions.plus(replyUser) this.mentions = currentMentions.plus(replyUser)
} }
} }
} ?: { } ?: run {
replyTos = null replyTos = null
mentions = null mentions = null
} }
quote?.let { quote?.let {
message = TextFieldValue(message.text + "\n\n@${it.idNote()}") message = TextFieldValue(message.text + "\n\n@${it.idNote()}")
this.replyTos = emptyList<Note>()
} }
canAddInvoice = account.userProfile().info?.lnAddress() != null canAddInvoice = account.userProfile().info?.lnAddress() != null