From 8c333dc3f7996ec68086c9f4d28bdee6f15eef14 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 16 Jun 2017 14:39:31 +0100 Subject: [PATCH] remove debug and add comment Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/MessagePanel.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 6728cb1a49..d21dbd88da 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -243,7 +243,7 @@ module.exports = React.createClass({ // TODO: Implement granular (per-room) hide options _shouldShowEvent: function(mxEv) { - console.log("_shouldShowEvent ", mxEv.getId(), mxEv); + // console.log("_shouldShowEvent ", mxEv.getId(), mxEv); const EventTile = sdk.getComponent('rooms.EventTile'); if (!EventTile.haveTileForEvent(mxEv)) { return false; // no tile = no show @@ -344,6 +344,7 @@ module.exports = React.createClass({ let last = (i == lastShownEventIndex); if (!this._shouldShowEvent(mxEv)) { + // Event is hidden but may be the read marker event if (mxEv.getId() === this.props.readMarkerEventId) { ret.push(this._getReadMarkerTile(this.props.readMarkerVisible)); }