diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 84ad8f595c..c3a07dd104 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -920,7 +920,10 @@ module.exports = React.createClass({ // screen. var showBar = (pos < 0); - this.setState({showTopUnreadMessagesBar: showBar}); + if (this.state.showTopUnreadMessagesBar != showBar) { + this.setState({showTopUnreadMessagesBar: showBar}, + this.onChildResize); + } }, // get the current scroll position of the room, so that it can be