mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-19 22:00:35 +02:00
fix bug: quote repost is tied up to a post which is replyed a little while ago.
This commit is contained in:
@@ -53,6 +53,7 @@ class NewMessageTagger(var channel: Channel?, var mentions: List<User>?, var rep
|
||||
message = message.split('\n').map { paragraph: String ->
|
||||
paragraph.split(' ').map { word: String ->
|
||||
val results = parseDirtyWordForKey(word)
|
||||
|
||||
if (results?.key?.type == Nip19.Type.USER) {
|
||||
val user = LocalCache.getOrCreateUser(results.key.hex)
|
||||
|
||||
|
@@ -79,6 +79,7 @@ open class NewPostViewModel : ViewModel() {
|
||||
|
||||
quote?.let {
|
||||
message = TextFieldValue(message.text + "\n\n@${it.idNote()}")
|
||||
this.replyTos = emptyList<Note>()
|
||||
}
|
||||
|
||||
canAddInvoice = account.userProfile().info?.lnAddress() != null
|
||||
|
Reference in New Issue
Block a user