Update the gemini panel when we show/hide the TopUnreadMessagesBar

Showing/hiding the TopUnreadMessagesBar resizes the scrollpanel. Make sure that
we update the gemini panel when this happens.

(Fixes an intermittent bug wherein we could get stuck with a 'scroll to bottom'
indicator after jumping to the bottom, with unread messages in the view)
This commit is contained in:
Richard van der Hoff 2016-03-10 15:55:03 +00:00
parent 7660276b54
commit f9e753f57a

View file

@ -920,7 +920,10 @@ module.exports = React.createClass({
// screen. // screen.
var showBar = (pos < 0); 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 // get the current scroll position of the room, so that it can be