mirror of https://github.com/vector-im/riot-web
fix logic ordering
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
17758cd1db
commit
5808fce60e
|
@ -351,16 +351,16 @@ module.exports = React.createClass({
|
||||||
break;
|
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 RM event is in MELS mark it as such and the RM will be appended after MELS.
|
||||||
if (collapsedMxEv.getId() === this.props.readMarkerEventId) {
|
if (collapsedMxEv.getId() === this.props.readMarkerEventId) {
|
||||||
readMarkerInMels = true;
|
readMarkerInMels = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ignore redacted member events
|
||||||
|
if (!this._shouldShowEvent(collapsedMxEv)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
summarisedEvents.push(collapsedMxEv);
|
summarisedEvents.push(collapsedMxEv);
|
||||||
}
|
}
|
||||||
// At this point, i = the index of the last event in the summary sequence
|
// At this point, i = the index of the last event in the summary sequence
|
||||||
|
|
Loading…
Reference in New Issue