Fix suppression when message is empty

This commit is contained in:
Florian Duros 2022-10-20 11:52:50 +02:00
parent 5e6d0f6404
commit 072c767b68
No known key found for this signature in database
GPG Key ID: 9700AA5870258A0B

View File

@ -89,15 +89,15 @@ export function createMessageContent(
const htmlPrefix = isReply ? getHtmlReplyFallback(editedEvent) : '';
content.formatted_body = isEditing ? `${htmlPrefix} * ${formattedBody}` : formattedBody;
}
if (isEditing) {
content['m.new_content'] = {
"msgtype": content.msgtype,
"body": body,
"format": "org.matrix.custom.html",
'formatted_body': formattedBody,
};
}
if (isEditing) {
content['m.new_content'] = {
"msgtype": content.msgtype,
"body": body,
"format": "org.matrix.custom.html",
'formatted_body': formattedBody,
};
}
const newRelation = isEditing ?