mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
only handle reports when they pertain to a room we're protecting
This commit is contained in:
parent
1b06c34fd1
commit
6e7546e649
@ -74,6 +74,10 @@ export class ReportPoller {
|
||||
|
||||
const response = response_!;
|
||||
for (let report of response.event_reports) {
|
||||
if (!(report.room_id in this.mjolnir.protectedRooms)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
let event: any; // `any` because `handleServerAbuseReport` uses `any`
|
||||
try {
|
||||
event = (await this.mjolnir.client.doRequest(
|
||||
|
Loading…
Reference in New Issue
Block a user