Fix suppression when message is empty
parent
5e6d0f6404
commit
072c767b68
|
@ -89,6 +89,7 @@ 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'] = {
|
||||||
|
@ -98,7 +99,6 @@ export function createMessageContent(
|
||||||
'formatted_body': formattedBody,
|
'formatted_body': formattedBody,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
const newRelation = isEditing ?
|
const newRelation = isEditing ?
|
||||||
{ ...relation, 'rel_type': 'm.replace', 'event_id': editedEvent.getId() }
|
{ ...relation, 'rel_type': 'm.replace', 'event_id': editedEvent.getId() }
|
||||||
|
|
Loading…
Reference in New Issue