From 5e2e550bf9e4736ff26b14317b022a299b7ce004 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Fri, 2 Jun 2017 04:39:44 +0100 Subject: [PATCH] don't lose date seperator when the first event of the new day is redacted Signed-off-by: Michael Telatynski <7t3chguy@gmail.com> --- src/components/structures/MessagePanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/MessagePanel.js b/src/components/structures/MessagePanel.js index 5c68d4d206..9251ff2bdb 100644 --- a/src/components/structures/MessagePanel.js +++ b/src/components/structures/MessagePanel.js @@ -422,8 +422,6 @@ module.exports = React.createClass({ }, _getTilesForEvent: function(prevEvent, mxEv, last) { - if (mxEv.isRedacted() && this.props.hideRedactions) return []; - const EventTile = sdk.getComponent('rooms.EventTile'); const DateSeparator = sdk.getComponent('messages.DateSeparator'); var ret = []; @@ -468,6 +466,8 @@ module.exports = React.createClass({ continuation = false; } + if (mxEv.isRedacted() && this.props.hideRedactions) return ret; + var eventId = mxEv.getId(); var highlight = (eventId == this.props.highlightedEventId);