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
it.replyTo?.forEach { replyingNote ->
it.removeReply(it)
it.removeBoost(it)
it.removeReaction(it)
it.removeZap(it)
it.replyTo?.forEach { masterNote ->
masterNote.removeReply(it)
masterNote.removeBoost(it)
masterNote.removeReaction(it)
masterNote.removeZap(it)
}
notes.remove(it.idHex)