Fixes deletion of replaceable events.

This commit is contained in:
Vitor Pamplona
2023-12-05 21:47:20 -05:00
parent fce27c3c55
commit 41ef1abf0e
@@ -699,7 +699,9 @@ class Account(
suspend fun delete(notes: List<Note>) {
if (!isWriteable()) return
val myNotes = notes.filter { it.author == userProfile() }.map { it.idHex }
val myNotes = notes.filter { it.author == userProfile() }.mapNotNull {
it.event?.id()
}
if (myNotes.isNotEmpty()) {
DeletionEvent.create(myNotes, signer) {