Fix React warnings about missing key for edited messages

This uses a fragment instead of an array to avoid the need for key attributes.
pull/21833/head
J. Ryan Stinnett 2021-01-15 11:21:52 +00:00
parent 266162fa32
commit e90009772d
1 changed files with 4 additions and 1 deletions

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