From 6e191d3c79e4445b619998759e38c2e31683c5e3 Mon Sep 17 00:00:00 2001 From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Sun, 22 Sep 2024 14:38:55 +1000 Subject: [PATCH] Fix matrix.to links opening in webview in cinny desktop (#1963) --- src/app/hooks/useMentionClickHandler.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/hooks/useMentionClickHandler.ts b/src/app/hooks/useMentionClickHandler.ts index f8f4bf545..49c291c72 100644 --- a/src/app/hooks/useMentionClickHandler.ts +++ b/src/app/hooks/useMentionClickHandler.ts @@ -14,6 +14,7 @@ export const useMentionClickHandler = (roomId: string): ReactEventHandler = useCallback( (evt) => { + evt.stopPropagation(); evt.preventDefault(); const target = evt.currentTarget; const mentionId = target.getAttribute('data-mention-id');