mirror of https://github.com/vector-im/riot-web
Render children EventTiles before passing to summary element
parent
764959ec1c
commit
566034cf2b
|
@ -320,12 +320,13 @@ module.exports = React.createClass({
|
|||
}
|
||||
).reduce((a,b) => a.concat(b));
|
||||
};
|
||||
|
||||
let eventTiles = renderEvents(prevEvent, summarisedEvents);
|
||||
|
||||
ret.push(
|
||||
<MemberEventListSummary
|
||||
events={summarisedEvents}
|
||||
previousEvent={prevEvent}
|
||||
renderEvents={renderEvents}
|
||||
/>
|
||||
<MemberEventListSummary events={summarisedEvents}>
|
||||
{eventTiles}
|
||||
</MemberEventListSummary>
|
||||
);
|
||||
prevEvent = mxEv;
|
||||
continue;
|
||||
|
|
|
@ -180,7 +180,7 @@ module.exports = React.createClass({
|
|||
let expandedEvents = null;
|
||||
|
||||
if (expanded) {
|
||||
expandedEvents = this.props.renderEvents(this.props.previousEvent, eventsToRender);
|
||||
expandedEvents = this.props.children;
|
||||
}
|
||||
|
||||
let avatars = this.renderAvatars(joinEvents.concat(leaveEvents));
|
||||
|
|
Loading…
Reference in New Issue