mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-05-30 20:34:09 +00:00
Appease the linter
This commit is contained in:
@@ -33,12 +33,12 @@ export async function execRedactCommand(roomId: string, event: any, mjolnir: Mjo
|
||||
}
|
||||
|
||||
const eventsToRedact = await getMessagesByUserSinceLastJoin(mjolnir.client, userId, targetRoomId);
|
||||
for (const event of eventsToRedact) {
|
||||
for (const victimEvent of eventsToRedact) {
|
||||
if (config.verboseLogging) {
|
||||
await mjolnir.client.sendNotice(mjolnir.managementRoomId, `Redacting ${event['event_id']} in ${targetRoomId}`);
|
||||
await mjolnir.client.sendNotice(mjolnir.managementRoomId, `Redacting ${victimEvent['event_id']} in ${targetRoomId}`);
|
||||
}
|
||||
if (!config.noop) {
|
||||
await mjolnir.client.redactEvent(targetRoomId, event['event_id']);
|
||||
await mjolnir.client.redactEvent(targetRoomId, victimEvent['event_id']);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user