mirror of
https://github.com/SableClient/Sable.git
synced 2026-11-27 12:26:29 -08:00
😭
This commit is contained in:
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])
|
||||
|
||||
Reference in new issue
Block a user