correctly deletes a slave note

This commit is contained in:
Vitor Pamplona
2023-02-24 17:39:34 -05:00
parent 5e066e2485
commit ba21ae47ae

View File

@@ -667,11 +667,11 @@ object LocalCache {
} }
// Counts the replies // Counts the replies
it.replyTo?.forEach { replyingNote -> it.replyTo?.forEach { masterNote ->
it.removeReply(it) masterNote.removeReply(it)
it.removeBoost(it) masterNote.removeBoost(it)
it.removeReaction(it) masterNote.removeReaction(it)
it.removeZap(it) masterNote.removeZap(it)
} }
notes.remove(it.idHex) notes.remove(it.idHex)