only handle reports when they pertain to a room we're protecting

This commit is contained in:
jesopo 2022-06-30 22:37:46 +00:00
parent 1b06c34fd1
commit 6e7546e649

View File

@ -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(