mirror of https://github.com/vector-im/riot-web
Fix clicking on copy link to thread wrongly opening thread (#8038)
parent
4a36f9b470
commit
5262d5c315
|
@ -656,6 +656,8 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
|
|||
};
|
||||
|
||||
private copyLinkToThread = async (evt: ButtonEvent): Promise<void> => {
|
||||
evt.preventDefault();
|
||||
evt.stopPropagation();
|
||||
const { permalinkCreator, mxEvent } = this.props;
|
||||
const matrixToUrl = permalinkCreator.forEvent(mxEvent.getId());
|
||||
await copyPlaintext(matrixToUrl);
|
||||
|
|
Loading…
Reference in New Issue