Skip to content

Commit

Permalink
Fix list rooms command improperly iterating protected rooms.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuxie committed Oct 18, 2022
1 parent ad89eb6 commit 6009555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/ListProtectedRoomsCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6009555

Please sign in to comment.