Revert incorrect change to forShareableRoom

Signed-off-by: Aaron Raimist <aaron@raim.ist>
This commit is contained in:
Aaron Raimist 2021-06-07 16:54:36 -05:00
parent c99c42f341
commit a5bf17ff65
No known key found for this signature in database
GPG key ID: 37419210002890EF

View file

@ -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();