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) {