From 7443712c2ae4717183b895de8a13d821c666db20 Mon Sep 17 00:00:00 2001 From: Krishan <33421343+kfiven@users.noreply.github.com> Date: Fri, 20 Sep 2024 20:27:00 +1000 Subject: [PATCH] Fix matrix.to links opening in webview in cinny desktop --- 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 f8f4bf54..49c291c7 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');