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,