Remove ability for VM to do linkifying.

This commit is contained in:
Half-Shot 2026-03-02 12:18:02 +00:00
parent 46d42f6f91
commit a0e70f1095

View File

@ -13,15 +13,13 @@ import {
} from "@element-hq/web-shared-components";
import { logger as rootLogger } from "matrix-js-sdk/src/logger";
import { type IPreviewUrlResponse, type MatrixClient, MatrixError, type MatrixEvent } from "matrix-js-sdk/src/matrix";
import React, { type ReactNode } from "react";
import { decode } from "html-entities";
import { isPermalinkHost } from "../../utils/permalinks/Permalinks";
import { mediaFromMxc } from "../../customisations/Media";
import PlatformPeg from "../../PlatformPeg";
import { thumbHeight } from "../../ImageUtils";
import SettingsStore from "../../settings/SettingsStore";
import { Linkify } from "../../Linkify";
import { decode } from "html-entities";
const logger = rootLogger.getChild("UrlPreviewViewModel");
@ -117,7 +115,7 @@ export class UrlPreviewViewModel
return {
title,
description: description && <Linkify>{decode(description)}</Linkify>,
description: description && decode(description),
siteName,
};
}