fixed difference between prs

This commit is contained in:
Shea Duma committed 2026-03-02 07:30:12 +02:00
1 parent 94c43a69f8
commit 03afdd4ce7
1 file changed
+1 -1
+1 -1
View File
@@ -320,6 +320,7 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
};
const handleSendUpload = async (uploads: UploadSuccess[]) => {
const plaintext = toPlainText(editor.children, isMarkdown).trim();
const contentsPromises = uploads.map(async (upload) => {
const fileItem = selectedFiles.find((f) => f.file === upload.file);
if (!fileItem) throw new Error('Broken upload');
@@ -340,7 +341,6 @@ export const RoomInput = forwardRef<HTMLDivElement, RoomInputProps>(
if (contents.length > 0) {
console.log(editor.children);
const plaintext = toPlainText(editor.children, isMarkdown).trim();
const replyContent = plaintext.length === 0 ? getReplyContent(replyDraft) : undefined;
if (replyContent) contents[0]['m.relates_to'] = replyContent;
setReplyDraft(undefined);