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)
pull/21833/head
Richard van der Hoff 2016-03-10 15:55:03 +00:00
parent 7660276b54
commit f9e753f57a
1 changed files with 4 additions and 1 deletions

View File

@ -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