Skip to content

Commit e252c55

Browse files
committed
Prefer matrix.to alias links over room id in spaces & share
1 parent e7cfa48 commit e252c55

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/views/dialogs/ShareDialog.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export default class ShareDialog extends React.PureComponent<IProps, IState> {
158158
if (this.state.linkSpecificEvent) {
159159
matrixToUrl = this.props.permalinkCreator.forEvent(this.props.target.getId());
160160
} else {
161-
matrixToUrl = this.props.permalinkCreator.forRoom();
161+
matrixToUrl = this.props.permalinkCreator.forShareableRoom();
162162
}
163163
}
164164
return matrixToUrl;

src/components/views/spaces/SpacePublicShare.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const SpacePublicShare = ({ space, onFinished }: IProps) => {
3939
onClick={async () => {
4040
const permalinkCreator = new RoomPermalinkCreator(space);
4141
permalinkCreator.load();
42-
const success = await copyPlaintext(permalinkCreator.forRoom());
42+
const success = await copyPlaintext(permalinkCreator.forShareableRoom());
4343
const text = success ? _t("Copied!") : _t("Failed to copy");
4444
setCopiedText(text);
4545
await sleep(5000);

0 commit comments

Comments
 (0)