Skip to content

Commit cfea765

Browse files
committed
Fix list rooms command improperly iterating protected rooms.
1 parent c7ba745 commit cfea765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/ListProtectedRoomsCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export async function execListProtectedRooms(roomId: string, event: any, mjolnir
2424
let text = `Protected rooms (${rooms.length}):\n`;
2525

2626
let hasRooms = false;
27-
for (const protectedRoomId in rooms) {
27+
for (const protectedRoomId of rooms) {
2828
hasRooms = true;
2929

3030
const roomUrl = Permalinks.forRoom(protectedRoomId);

0 commit comments

Comments
 (0)