From 16ed06cebb1e336888840a923784e53b4189771a Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Fri, 12 Apr 2019 12:47:52 +0200 Subject: [PATCH] dont show room header and timeline when room cant be peeked (just preview bar) --- src/components/structures/RoomView.js | 27 +++++++-------------------- 1 file changed, 7 insertions(+), 20 deletions(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 2da21bbef7..3ff72b4e5b 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1523,16 +1523,6 @@ module.exports = React.createClass({ const roomAlias = this.state.roomAlias; return (
- -
-
-
-
- -
-
-
-
); + if (!this.state.canPeek) { + return ( +
+ { previewBar } +
+ ); + } } else if (hiddenHighlightCount > 0) { aux = (