1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

replace original event if there have been previous edits

This commit is contained in:
Bruno Windels
2019-05-14 15:20:52 +01:00
parent 15df72e629
commit 45991bc3de

View File

@@ -116,7 +116,7 @@ export default class MessageEditor extends React.Component {
"body": textSerialize(this.model),
"m.relates_to": {
"rel_type": "m.replace",
"event_id": this.props.event.getId(),
"event_id": this.props.event.getOriginalId(),
},
};
if (requiresHtml(this.model)) {