From 615d96a0650928484fc5ccb47a16780781d26c70 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 18 Aug 2017 11:53:52 +0100 Subject: [PATCH] catch hidden event being RM Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/MessagePanel.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index a9a14c0870..460ed43e82 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -341,6 +341,10 @@ module.exports = React.createClass({ // Ignore redacted/hidden member events 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; }