mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-08-29 07:08:50 +00:00
Fix list rooms command improperly iterating protected rooms.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user