mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Revert incorrect change to forShareableRoom
Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
parent
c99c42f341
commit
a5bf17ff65
@ -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.
|
||||
// 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 room = client.getRoom(roomId);
|
||||
if (!room) {
|
||||
return getPermalinkConstructor().forShareableRoom(roomId, []);
|
||||
return getPermalinkConstructor().forRoom(roomId, []);
|
||||
}
|
||||
const permalinkCreator = new RoomPermalinkCreator(room);
|
||||
permalinkCreator.load();
|
||||
|
Loading…
Reference in New Issue
Block a user