You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Move processing into renamed function processHtmlforSending
And explain why this fix is necessary
This commit is contained in:
@@ -507,9 +507,9 @@ export default class MessageComposerInput extends React.Component {
|
||||
}
|
||||
|
||||
if (this.state.isRichtextEnabled) {
|
||||
contentHTML = HtmlUtils.stripParagraphs(
|
||||
contentHTML = HtmlUtils.processHtmlForSending(
|
||||
RichText.contentStateToHTML(contentState),
|
||||
).replace(/\<br\>\n/g, '<br>');
|
||||
);
|
||||
} else {
|
||||
const md = new Markdown(contentText);
|
||||
if (md.isPlainText()) {
|
||||
|
||||
Reference in New Issue
Block a user