You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-28 15:22:05 +03:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user