mirror of https://github.com/vector-im/riot-web
Merge pull request #3551 from maunium/fix-edit-reply-fallback
Fix reply fallback being included in edit m.new_contentpull/21833/head
commit
96db855e48
|
@ -75,7 +75,7 @@ function createEditContent(model, editedEvent) {
|
||||||
|
|
||||||
const newContent = {
|
const newContent = {
|
||||||
"msgtype": isEmote ? "m.emote" : "m.text",
|
"msgtype": isEmote ? "m.emote" : "m.text",
|
||||||
"body": plainPrefix + body,
|
"body": body,
|
||||||
};
|
};
|
||||||
const contentBody = {
|
const contentBody = {
|
||||||
msgtype: newContent.msgtype,
|
msgtype: newContent.msgtype,
|
||||||
|
@ -85,7 +85,7 @@ function createEditContent(model, editedEvent) {
|
||||||
const formattedBody = htmlSerializeIfNeeded(model, {forceHTML: isReply});
|
const formattedBody = htmlSerializeIfNeeded(model, {forceHTML: isReply});
|
||||||
if (formattedBody) {
|
if (formattedBody) {
|
||||||
newContent.format = "org.matrix.custom.html";
|
newContent.format = "org.matrix.custom.html";
|
||||||
newContent.formatted_body = htmlPrefix + formattedBody;
|
newContent.formatted_body = formattedBody;
|
||||||
contentBody.format = newContent.format;
|
contentBody.format = newContent.format;
|
||||||
contentBody.formatted_body = `${htmlPrefix} * ${formattedBody}`;
|
contentBody.formatted_body = `${htmlPrefix} * ${formattedBody}`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue