mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-16 13:14:58 +08:00
Fix clicking on copy link to thread wrongly opening thread (#8038)
This commit is contained in:
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
Block a user