diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js
index 3b0dbc03ac..b7e8a22669 100644
--- a/src/components/structures/MessagePanel.js
+++ b/src/components/structures/MessagePanel.js
@@ -294,7 +294,6 @@ module.exports = React.createClass({
// Wrap consecutive member events in a ListSummary
if (isMembershipChange(mxEv)) {
-
let summarisedEvents = [mxEv];
i++;
for (;i < this.props.events.length; i++) {
@@ -306,15 +305,14 @@ module.exports = React.createClass({
}
summarisedEvents.push(collapsedMxEv);
}
-
- let renderEvents = (events) => {
+ let renderEvents = (pEvent, events) => {
if (events.length === 0) {
return null;
}
return events.map(
(e) => {
- // e, e to prevent date seperators
- let ret = this._getTilesForEvent(e, e);
+ let ret = this._getTilesForEvent(pEvent, e);
+ pEvent = e;
return ret;
}
).reduce((a,b) => a.concat(b));
@@ -322,11 +320,11 @@ module.exports = React.createClass({
ret.push(