diff --git a/src/Mjolnir.ts b/src/Mjolnir.ts index 095819d..6026072 100644 --- a/src/Mjolnir.ts +++ b/src/Mjolnir.ts @@ -1188,7 +1188,7 @@ export class Mjolnir { return await this.eventRedactionQueue.process(this, roomId); } - private async handleReport(roomId: string, reporterId: string, event: any, reason?: string) { + private async handleReport({ roomId, reporterId, event, reason }: { roomId: string, reporterId: string, event: any, reason?: string }) { for (const protection of this.enabledProtections) { await protection.handleReport(this, roomId, reporterId, event, reason); }