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

Commit

Permalink
Fix clicking on copy link to thread wrongly opening thread
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy committed Mar 11, 2022
1 parent 20d5798 commit d8ddd6c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/views/rooms/EventTile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d8ddd6c

Please sign in to comment.