Fix list rooms command improperly iterating protected rooms.

This commit is contained in:
gnuxie
2022-10-19 15:21:51 +01:00
committed by Gnuxie
parent c7ba745081
commit cfea765493
+1 -1
View File
@@ -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);