1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-16 22:01:54 +03:00

fix logic ordering

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2017-07-21 22:45:19 +01:00
parent 17758cd1db
commit 5808fce60e

View File

@ -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