unrevert some more...

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-07-22 11:37:21 +01:00
parent 7e355f7cda
commit ae973e1e99
No known key found for this signature in database
GPG key ID: 0435A1D4BBD34D64

View file

@ -344,7 +344,7 @@ module.exports = React.createClass({
readMarkerInMels = true; readMarkerInMels = true;
} }
// Ignore redacted member events // Ignore redacted/hidden member events
if (!this._shouldShowEvent(collapsedMxEv)) { if (!this._shouldShowEvent(collapsedMxEv)) {
continue; continue;
} }
@ -353,20 +353,15 @@ module.exports = React.createClass({
} }
// 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
let eventTiles = summarisedEvents.map( let eventTiles = summarisedEvents.map((e) => {
(e) => { // In order to prevent DateSeparators from appearing in the expanded form
if (e.getId() === this.props.readMarkerEventId) { // of MemberEventListSummary, render each member event as if the previous
readMarkerInMels = true; // one was itself. This way, the timestamp of the previous event === the
} // timestamp of the current event, and no DateSeperator is inserted.
// In order to prevent DateSeparators from appearing in the expanded form const ret = this._getTilesForEvent(e, e, last);
// of MemberEventListSummary, render each member event as if the previous prevEvent = e;
// one was itself. This way, the timestamp of the previous event === the return ret;
// timestamp of the current event, and no DateSeperator is inserted. }).reduce((a, b) => a.concat(b));
let ret = this._getTilesForEvent(e, e, last);
prevEvent = e;
return ret;
}
).reduce((a, b) => a.concat(b));
if (eventTiles.length === 0) { if (eventTiles.length === 0) {
eventTiles = null; eventTiles = null;