Fix clicking on copy link to thread wrongly opening thread (#8038)
This commit is contained in:
parent
4a36f9b470
commit
5262d5c315
1 changed files with 2 additions and 0 deletions
|
@ -656,6 +656,8 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
|
||||||
};
|
};
|
||||||
|
|
||||||
private copyLinkToThread = async (evt: ButtonEvent): Promise<void> => {
|
private copyLinkToThread = async (evt: ButtonEvent): Promise<void> => {
|
||||||
|
evt.preventDefault();
|
||||||
|
evt.stopPropagation();
|
||||||
const { permalinkCreator, mxEvent } = this.props;
|
const { permalinkCreator, mxEvent } = this.props;
|
||||||
const matrixToUrl = permalinkCreator.forEvent(mxEvent.getId());
|
const matrixToUrl = permalinkCreator.forEvent(mxEvent.getId());
|
||||||
await copyPlaintext(matrixToUrl);
|
await copyPlaintext(matrixToUrl);
|
||||||
|
|
Loading…
Reference in a new issue