Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/small-image-fix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
default: patch
---

Fix messages sent from sable showing wrong on other client(s)
8 changes: 0 additions & 8 deletions src/app/features/room/msgContent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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) {
Expand Down Expand Up @@ -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 : '<em>a voice message</em>',
info: {
mimetype: file.type,
size: file.size,
Expand Down Expand Up @@ -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,
Expand Down
Loading