mirror of https://github.com/vector-im/riot-web
Prefer matrix.to alias links over room id in spaces & share
parent
e7cfa4816e
commit
e252c5553e
|
@ -158,7 +158,7 @@ export default class ShareDialog extends React.PureComponent<IProps, IState> {
|
|||
if (this.state.linkSpecificEvent) {
|
||||
matrixToUrl = this.props.permalinkCreator.forEvent(this.props.target.getId());
|
||||
} else {
|
||||
matrixToUrl = this.props.permalinkCreator.forRoom();
|
||||
matrixToUrl = this.props.permalinkCreator.forShareableRoom();
|
||||
}
|
||||
}
|
||||
return matrixToUrl;
|
||||
|
|
|
@ -39,7 +39,7 @@ const SpacePublicShare = ({ space, onFinished }: IProps) => {
|
|||
onClick={async () => {
|
||||
const permalinkCreator = new RoomPermalinkCreator(space);
|
||||
permalinkCreator.load();
|
||||
const success = await copyPlaintext(permalinkCreator.forRoom());
|
||||
const success = await copyPlaintext(permalinkCreator.forShareableRoom());
|
||||
const text = success ? _t("Copied!") : _t("Failed to copy");
|
||||
setCopiedText(text);
|
||||
await sleep(5000);
|
||||
|
|
Loading…
Reference in New Issue