Fix suppression when message is empty
This commit is contained in:
@@ -89,15 +89,15 @@ export function createMessageContent(
|
|||||||
|
|
||||||
const htmlPrefix = isReply ? getHtmlReplyFallback(editedEvent) : '';
|
const htmlPrefix = isReply ? getHtmlReplyFallback(editedEvent) : '';
|
||||||
content.formatted_body = isEditing ? `${htmlPrefix} * ${formattedBody}` : formattedBody;
|
content.formatted_body = isEditing ? `${htmlPrefix} * ${formattedBody}` : formattedBody;
|
||||||
|
}
|
||||||
|
|
||||||
if (isEditing) {
|
if (isEditing) {
|
||||||
content['m.new_content'] = {
|
content['m.new_content'] = {
|
||||||
"msgtype": content.msgtype,
|
"msgtype": content.msgtype,
|
||||||
"body": body,
|
"body": body,
|
||||||
"format": "org.matrix.custom.html",
|
"format": "org.matrix.custom.html",
|
||||||
'formatted_body': formattedBody,
|
'formatted_body': formattedBody,
|
||||||
};
|
};
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const newRelation = isEditing ?
|
const newRelation = isEditing ?
|
||||||
|
|||||||
Reference in New Issue
Block a user