mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
check room exists
This commit is contained in:
parent
fe71c17bb7
commit
be3d12721c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user