From 5262d5c315efbf0c3c6bf1d84997cecd53d53392 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 11 Mar 2022 17:13:23 +0000 Subject: [PATCH] Fix clicking on copy link to thread wrongly opening thread (#8038) --- src/components/views/rooms/EventTile.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/components/views/rooms/EventTile.tsx b/src/components/views/rooms/EventTile.tsx index 79ae4224ce..152154d0c9 100644 --- a/src/components/views/rooms/EventTile.tsx +++ b/src/components/views/rooms/EventTile.tsx @@ -656,6 +656,8 @@ export class UnwrappedEventTile extends React.Component { }; private copyLinkToThread = async (evt: ButtonEvent): Promise => { + evt.preventDefault(); + evt.stopPropagation(); const { permalinkCreator, mxEvent } = this.props; const matrixToUrl = permalinkCreator.forEvent(mxEvent.getId()); await copyPlaintext(matrixToUrl);