catch hidden event being RM

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2017-08-18 11:53:52 +01:00
parent 14903274c0
commit 615d96a065
No known key found for this signature in database
GPG key ID: 0435A1D4BBD34D64

View file

@ -341,6 +341,10 @@ module.exports = React.createClass({
// Ignore redacted/hidden member events // Ignore redacted/hidden member events
if (!this._shouldShowEvent(collapsedMxEv)) { if (!this._shouldShowEvent(collapsedMxEv)) {
// If this hidden event is the RM and in or at end of a MELS put RM after MELS.
if (collapsedMxEv.getId() === this.props.readMarkerEventId) {
readMarkerInMels = true;
}
continue; continue;
} }