Fix matrix.to links opening in webview in cinny desktop

This commit is contained in:
Krishan 2024-09-20 20:27:00 +10:00
parent 21164a9b61
commit 7443712c2a

View file

@ -14,6 +14,7 @@ export const useMentionClickHandler = (roomId: string): ReactEventHandler<HTMLEl
const handleClick: ReactEventHandler<HTMLElement> = useCallback( const handleClick: ReactEventHandler<HTMLElement> = useCallback(
(evt) => { (evt) => {
evt.stopPropagation();
evt.preventDefault(); evt.preventDefault();
const target = evt.currentTarget; const target = evt.currentTarget;
const mentionId = target.getAttribute('data-mention-id'); const mentionId = target.getAttribute('data-mention-id');