This commit is contained in:
Shea Duma committed 2026-04-24 08:56:14 +03:00
1 parent f73cf5cadd
commit 816f18f2d2
1 file changed
+3 -3
@@ -212,7 +212,7 @@ export const MessageEditor = as<'div', MessageEditorProps>(
const mMentions = getMentionContent(Array.from(mentionData.users), mentionData.room);
newContent['m.mentions'] = mMentions;
contentBody['m.mentions'] = mMentions;
const links = getLinks(editor);
if (!customHtmlEqualsPlainText(customHtml, plainText)) {
@@ -249,8 +249,8 @@ export const MessageEditor = as<'div', MessageEditorProps>(
oldContent['page.codeberg.everypizza.msc4193.spoiler'];
}
}
content['com.beeper.linkpreviews'] = [];
links?.forEach((link) => content['com.beeper.linkpreviews'].push({ matched_url: link }));
content['com.beeper.linkpreviews'] = [];
links?.forEach((link) => content['com.beeper.linkpreviews'].push({ matched_url: link }));
return mx.sendMessage(roomId, content as RoomMessageEventContent);
}, [mx, editor, roomId, mEvent, isMarkdown, getPrevBodyAndFormattedBody, room])