From 04b3bc6add75d7c17e0ee9e96846548b2e93e414 Mon Sep 17 00:00:00 2001 From: gnuxie Date: Mon, 17 Oct 2022 11:25:17 +0100 Subject: [PATCH] Fix `list rooms` command improperly iterating protected rooms. --- src/commands/ListProtectedRoomsCommand.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/ListProtectedRoomsCommand.ts b/src/commands/ListProtectedRoomsCommand.ts index 66574ea..6dc4663 100644 --- a/src/commands/ListProtectedRoomsCommand.ts +++ b/src/commands/ListProtectedRoomsCommand.ts @@ -24,7 +24,7 @@ export async function execListProtectedRooms(roomId: string, event: any, mjolnir let text = `Protected rooms (${rooms.length}):\n`; let hasRooms = false; - for (const protectedRoomId in rooms) { + for (const protectedRoomId of rooms) { hasRooms = true; const roomUrl = Permalinks.forRoom(protectedRoomId);