mirror of
https://github.com/matrix-org/mjolnir.git
synced 2024-10-01 01:36:06 -04:00
consistently use 'alias' in ensureAliasedRoomExists
This commit is contained in:
parent
1446b261d8
commit
4b3967b71e
@ -39,7 +39,7 @@ export async function ensureAliasedRoomExists(client: MatrixClient, alias: strin
|
|||||||
let roomId = await client.createRoom({
|
let roomId = await client.createRoom({
|
||||||
visibility: "public",
|
visibility: "public",
|
||||||
});
|
});
|
||||||
await client.createRoomAlias(config.managementRoom, roomId);
|
await client.createRoomAlias(alias, roomId);
|
||||||
return roomId
|
return roomId
|
||||||
}
|
}
|
||||||
throw e;
|
throw e;
|
||||||
|
Loading…
Reference in New Issue
Block a user