Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit 5262d5c

Browse files
authored
Fix clicking on copy link to thread wrongly opening thread (#8038)
1 parent 4a36f9b commit 5262d5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/views/rooms/EventTile.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,8 @@ export class UnwrappedEventTile extends React.Component<IProps, IState> {
656656
};
657657

658658
private copyLinkToThread = async (evt: ButtonEvent): Promise<void> => {
659+
evt.preventDefault();
660+
evt.stopPropagation();
659661
const { permalinkCreator, mxEvent } = this.props;
660662
const matrixToUrl = permalinkCreator.forEvent(mxEvent.getId());
661663
await copyPlaintext(matrixToUrl);

0 commit comments

Comments
 (0)