Reduce amount of DOM nodes

This commit is contained in:
Germain Souquet 2021-05-20 15:39:25 +01:00
parent 171539d42d
commit f058fd8869
3 changed files with 16 additions and 12 deletions

View file

@ -214,7 +214,7 @@ export default class ReplyThread extends React.Component {
static makeThread(parentEv, onHeightChanged, permalinkCreator, ref, layout) {
if (!ReplyThread.getParentEventId(parentEv)) {
return <div className="mx_ReplyThread_wrapper_empty" />;
return null;
}
return <ReplyThread
parentEv={parentEv}