Revert incorrect change to forShareableRoom
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
c99c42f341
commit
a5bf17ff65
1 changed files with 2 additions and 2 deletions
|
@ -293,12 +293,12 @@ export function makeRoomPermalink(roomId: string): string {
|
||||||
|
|
||||||
// If the roomId isn't actually a room ID, don't try to list the servers.
|
// If the roomId isn't actually a room ID, don't try to list the servers.
|
||||||
// Aliases are already routable, and don't need extra information.
|
// Aliases are already routable, and don't need extra information.
|
||||||
if (roomId[0] !== '!') return getPermalinkConstructor().forShareableRoom(roomId, []);
|
if (roomId[0] !== '!') return getPermalinkConstructor().forRoom(roomId, []);
|
||||||
|
|
||||||
const client = MatrixClientPeg.get();
|
const client = MatrixClientPeg.get();
|
||||||
const room = client.getRoom(roomId);
|
const room = client.getRoom(roomId);
|
||||||
if (!room) {
|
if (!room) {
|
||||||
return getPermalinkConstructor().forShareableRoom(roomId, []);
|
return getPermalinkConstructor().forRoom(roomId, []);
|
||||||
}
|
}
|
||||||
const permalinkCreator = new RoomPermalinkCreator(room);
|
const permalinkCreator = new RoomPermalinkCreator(room);
|
||||||
permalinkCreator.load();
|
permalinkCreator.load();
|
||||||
|
|
Loading…
Reference in a new issue