mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
Fix list rooms
command improperly iterating protected rooms.
This commit is contained in:
parent
ef335d80c5
commit
04b3bc6add
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user