check room exists

This commit is contained in:
Bruno Windels 2019-02-22 12:00:00 +01:00
parent fe71c17bb7
commit be3d12721c

View file

@ -243,6 +243,9 @@ export function makeRoomPermalink(roomId) {
const client = MatrixClientPeg.get();
const room = client.getRoom(roomId);
if (!room) {
return permalinkBase;
}
const permalinkCreator = new RoomPermalinkCreator(room);
permalinkCreator.load();
return permalinkCreator.forRoom();