Roll back pillify everything (#10370)

(cherry picked from commit 05e3fb09d6)
This commit is contained in:
Michael Weimann 2023-03-14 11:56:14 +01:00 committed by Andy Balaam
parent 52420aa082
commit 370c872d70
2 changed files with 8 additions and 5 deletions

View file

@ -92,8 +92,11 @@ export default class TextualBody extends React.Component<IBodyProps, IState> {
const showLineNumbers = SettingsStore.getValue("showCodeLineNumbers");
this.activateSpoilers([content]);
HtmlUtils.linkifyElement(content);
// pillifyLinks BEFORE linkifyElement because plain room/user URLs in the composer
// are still sent as plaintext URLs. If these are ever pillified in the composer,
// we should be pillify them here by doing the linkifying BEFORE the pillifying.
pillifyLinks([content], this.props.mxEvent, this.pills);
HtmlUtils.linkifyElement(content);
this.calculateUrlPreview();