From 764959ec1cb80a1918a8b66edb5e1f260c75eb98 Mon Sep 17 00:00:00 2001 From: Luke Barnard Date: Thu, 10 Nov 2016 13:14:04 +0000 Subject: [PATCH] Comment on i after membershipchanges --- src/components/structures/MessagePanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 5e79232e75..64b3fecaab 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -305,6 +305,9 @@ module.exports = React.createClass({ } summarisedEvents.push(collapsedMxEv); } + // At this point, i = this.props.events.length OR i = the index of the first event + // to NOT be a MembershipChange after a sequence of MembershipChanges + let renderEvents = (pEvent, events) => { if (events.length === 0) { return null;