From 5808fce60e48210751df424c9734728bf872ca0c Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 21 Jul 2017 22:45:19 +0100 Subject: [PATCH] fix logic ordering Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/MessagePanel.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 15c7c92504..2443a06128 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -351,16 +351,16 @@ module.exports = React.createClass({ break; } - // Ignore redacted member events - if (!this._shouldShowEvent(collapsedMxEv)) { - continue; - } - // If RM event is in MELS mark it as such and the RM will be appended after MELS. if (collapsedMxEv.getId() === this.props.readMarkerEventId) { readMarkerInMels = true; } + // Ignore redacted member events + if (!this._shouldShowEvent(collapsedMxEv)) { + continue; + } + summarisedEvents.push(collapsedMxEv); } // At this point, i = the index of the last event in the summary sequence