unrevert some more...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>pull/21833/head
parent
7e355f7cda
commit
ae973e1e99
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue