mirror of
https://github.com/vector-im/element-web.git
synced 2026-03-09 23:41:50 +01:00
Remove ability for VM to do linkifying.
This commit is contained in:
parent
46d42f6f91
commit
a0e70f1095
@ -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,
|
||||
};
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user