From 5c2e4ab0bbad2e1ab3759fc4da63cb078e0ecc36 Mon Sep 17 00:00:00 2001 From: gnuxie Date: Fri, 14 Oct 2022 19:36:31 +0100 Subject: [PATCH] Change list creation command to also protect the new room https://github.com/matrix-org/mjolnir/issues/370 --- src/commands/CreateBanListCommand.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/CreateBanListCommand.ts b/src/commands/CreateBanListCommand.ts index a7b7b86..a315d42 100644 --- a/src/commands/CreateBanListCommand.ts +++ b/src/commands/CreateBanListCommand.ts @@ -32,6 +32,7 @@ export async function execCreateListCommand(roomId: string, event: any, mjolnir: const roomRef = Permalinks.forRoom(listRoomId); await mjolnir.watchList(roomRef); + await mjolnir.addProtectedRoom(listRoomId); const html = `Created new list (${listRoomId}). This list is now being watched.`; const text = `Created new list (${roomRef}). This list is now being watched.`;