mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-25 19:56:47 +02:00
Fix the deletion of reports from authors
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user