You've already forked element-web
mirror of
https://github.com/element-hq/element-web.git
synced 2025-11-29 21:23:11 +03:00
Render children EventTiles before passing to summary element
This commit is contained in:
@@ -320,12 +320,13 @@ module.exports = React.createClass({
|
|||||||
}
|
}
|
||||||
).reduce((a,b) => a.concat(b));
|
).reduce((a,b) => a.concat(b));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let eventTiles = renderEvents(prevEvent, summarisedEvents);
|
||||||
|
|
||||||
ret.push(
|
ret.push(
|
||||||
<MemberEventListSummary
|
<MemberEventListSummary events={summarisedEvents}>
|
||||||
events={summarisedEvents}
|
{eventTiles}
|
||||||
previousEvent={prevEvent}
|
</MemberEventListSummary>
|
||||||
renderEvents={renderEvents}
|
|
||||||
/>
|
|
||||||
);
|
);
|
||||||
prevEvent = mxEv;
|
prevEvent = mxEv;
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
@@ -180,7 +180,7 @@ module.exports = React.createClass({
|
|||||||
let expandedEvents = null;
|
let expandedEvents = null;
|
||||||
|
|
||||||
if (expanded) {
|
if (expanded) {
|
||||||
expandedEvents = this.props.renderEvents(this.props.previousEvent, eventsToRender);
|
expandedEvents = this.props.children;
|
||||||
}
|
}
|
||||||
|
|
||||||
let avatars = this.renderAvatars(joinEvents.concat(leaveEvents));
|
let avatars = this.renderAvatars(joinEvents.concat(leaveEvents));
|
||||||
|
|||||||
Reference in New Issue
Block a user