mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-04 16:53:09 +00:00
Open linkified room aliases and permalinks in the app rather than the browser (#34507)
This commit is contained in:
@@ -9,7 +9,6 @@ import React, { type MouseEvent } from "react";
|
||||
import { MatrixEventEvent, MsgType, type MatrixEvent } from "matrix-js-sdk/src/matrix";
|
||||
import {
|
||||
BaseViewModel,
|
||||
LINKIFIED_DATA_ATTRIBUTE,
|
||||
TextualBodyViewBodyWrapperKind,
|
||||
TextualBodyViewKind,
|
||||
type TextualBodyViewModel as TextualBodyViewModelInterface,
|
||||
@@ -278,10 +277,6 @@ export class TextualBodyViewModel
|
||||
public onRootClick = (event: MouseEvent<HTMLDivElement>): void => {
|
||||
let target: HTMLLinkElement | null = event.target as HTMLLinkElement;
|
||||
|
||||
if (target.dataset?.[LINKIFIED_DATA_ATTRIBUTE]) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (target.nodeName !== "A") {
|
||||
target = target.closest<HTMLLinkElement>("a");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user