From 365023349093bca52f7be9388bcb2f4d2407d74b Mon Sep 17 00:00:00 2001 From: Shea Duma Date: Sat, 21 Mar 2026 21:53:34 +0200 Subject: [PATCH 1/3] 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 000000000..b11e6ad1c --- /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 e090556cf..0cec05a57 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, From f669d21c152ba4f939e3afd5e9818f429c32e246 Mon Sep 17 00:00:00 2001 From: Shea Duma Date: Sat, 21 Mar 2026 21:58:19 +0200 Subject: [PATCH 2/3] pleasing the formatting gods :plead: --- .changeset/small-image-fix.md | 1 + 1 file changed, 1 insertion(+) diff --git a/.changeset/small-image-fix.md b/.changeset/small-image-fix.md index b11e6ad1c..877325599 100644 --- a/.changeset/small-image-fix.md +++ b/.changeset/small-image-fix.md @@ -1,4 +1,5 @@ --- default: patch --- + Fix messages sent from sable showing wrong on other client(s) From 4926476c5fb1b4177ef1824091508e9bcb90ace9 Mon Sep 17 00:00:00 2001 From: Shea Duma Date: Sat, 21 Mar 2026 22:09:49 +0200 Subject: [PATCH 3/3] fix styling for reply button in event context menu --- src/app/features/room/message/Message.tsx | 38 +++++++++++------------ 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/app/features/room/message/Message.tsx b/src/app/features/room/message/Message.tsx index 106c6cbf8..8620c757f 100644 --- a/src/app/features/room/message/Message.tsx +++ b/src/app/features/room/message/Message.tsx @@ -1354,26 +1354,26 @@ export const Event = as<'div', EventProps>( }} > - } - radii="300" - data-event-id={mEvent.getId()} - onClick={(evt: any) => { - onReplyClick(evt); - closeMenu(); - }} - > - - Reply - - + } + radii="300" + data-event-id={mEvent.getId()} + onClick={(evt: any) => { + onReplyClick(evt); + closeMenu(); + }} + > + + Reply + + {!hideReadReceipts && ( )}