mirror of https://github.com/vector-im/riot-web
silence react warning when showing edited marker, by also giving the body a key
parent
4c94b398d3
commit
76ceee0e6c
|
@ -541,8 +541,8 @@ export function bodyToHtml(content, highlights, opts={}) {
|
||||||
});
|
});
|
||||||
|
|
||||||
return isDisplayedWithHtml ?
|
return isDisplayedWithHtml ?
|
||||||
<span className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" /> :
|
<span key="body" className={className} dangerouslySetInnerHTML={{ __html: safeBody }} dir="auto" /> :
|
||||||
<span className={className} dir="auto">{ strippedBody }</span>;
|
<span key="body" className={className} dir="auto">{ strippedBody }</span>;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function emojifyText(text, addAlt) {
|
export function emojifyText(text, addAlt) {
|
||||||
|
|
Loading…
Reference in New Issue