From cebb7182f056ca077ffa4fedc95c8f7fc66e4de2 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Thu, 15 Jun 2017 20:17:59 +0100 Subject: [PATCH] try to make hiding events work with read markers Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/MessagePanel.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 8b9ada14e7..e0ca612b0a 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -341,6 +341,9 @@ module.exports = React.createClass({ let last = (i == lastShownEventIndex); if (!this._shouldShowEvent(mxEv)) { + if (mxEv.getId() === this.props.readMarkerEventId) { + ret.push(this._getReadMarkerTile(this.props.readMarkerVisible)); + } continue; }