Fix the deletion of reports from authors

This commit is contained in:
Vitor Pamplona
2023-08-29 17:14:25 -04:00
parent b82aefbd5d
commit 217ed90d9a

View File

@@ -1378,7 +1378,7 @@ object LocalCache {
(note.event as LnZapRequestEvent).zappedAuthor().mapNotNull { getUserIfExists(it)?.removeZap(note) }
}
if (note.event is ReportEvent) {
(note.event as ReportEvent).reportedAuthor().mapNotNull { getUserIfExists(it.key)?.removeZap(note) }
(note.event as ReportEvent).reportedAuthor().mapNotNull { getUserIfExists(it.key)?.removeReport(note) }
}
notes.remove(note.idHex)
}