1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-05 23:10:41 +03:00

Fix React warnings about missing key for edited messages

This uses a fragment instead of an array to avoid the need for key attributes.
This commit is contained in:
J. Ryan Stinnett
2021-01-15 11:21:52 +00:00
parent 266162fa32
commit e90009772d

View File

@@ -410,7 +410,10 @@ export default class TextualBody extends React.Component {
ref: this._content,
});
if (this.props.replacingEventId) {
body = [body, this._renderEditedMarker()];
body = <>
{body}
{this._renderEditedMarker()}
</>;
}
if (this.props.highlightLink) {