From 365023349093bca52f7be9388bcb2f4d2407d74b Mon Sep 17 00:00:00 2001 From: Shea Duma Date: Sat, 21 Mar 2026 21:53:34 +0200 Subject: [PATCH] removed the autopopulating of images's description on clients that only check if formatted_body exists --- .changeset/small-image-fix.md | 4 ++++ src/app/features/room/msgContent.ts | 8 -------- 2 files changed, 4 insertions(+), 8 deletions(-) create mode 100644 .changeset/small-image-fix.md diff --git a/.changeset/small-image-fix.md b/.changeset/small-image-fix.md new file mode 100644 index 00000000..b11e6ad1 --- /dev/null +++ b/.changeset/small-image-fix.md @@ -0,0 +1,4 @@ +--- +default: patch +--- +Fix messages sent from sable showing wrong on other client(s) diff --git a/src/app/features/room/msgContent.ts b/src/app/features/room/msgContent.ts index e090556c..0cec05a5 100644 --- a/src/app/features/room/msgContent.ts +++ b/src/app/features/room/msgContent.ts @@ -59,8 +59,6 @@ export const getImageMsgContent = async ( msgtype: MsgType.Image, filename: file.name, body: file.name, - format: 'org.matrix.custom.html', - formatted_body: file.name, [MATRIX_SPOILER_PROPERTY_NAME]: metadata.markedAsSpoiler, }; if (imgEl) { @@ -101,8 +99,6 @@ export const getVideoMsgContent = async ( msgtype: MsgType.Video, filename: file.name, body: file.name, - format: 'org.matrix.custom.html', - formatted_body: file.name, [MATRIX_SPOILER_PROPERTY_NAME]: metadata.markedAsSpoiler, }; if (videoEl) { @@ -155,8 +151,6 @@ export const getAudioMsgContent = (item: TUploadItem, mxc: string): AudioMsgCont msgtype: MsgType.Audio, filename: file.name, body: item.body && item.body.length > 0 ? item.body : 'a voice message', - format: 'org.matrix.custom.html', - formatted_body: item.body && item.body.length > 0 ? item.body : 'a voice message', info: { mimetype: file.type, size: file.size, @@ -220,8 +214,6 @@ export const getFileMsgContent = (item: TUploadItem, mxc: string): IContent => { msgtype: MsgType.File, filename: file.name, body: file.name, - format: 'org.matrix.custom.html', - formatted_body: file.name, info: { mimetype: file.type, size: file.size,