Show "jump to message" when message is not paginated

pull/21833/head
Luke Barnard 2017-04-25 17:19:36 +01:00
parent 5c83d4d2ed
commit 96e7479d8b
1 changed files with 2 additions and 1 deletions

View File

@ -1280,7 +1280,8 @@ module.exports = React.createClass({
// we want to show the bar if the read-marker is off the top of the
// screen.
var showBar = (pos < 0);
// If pos is null, the event might not be paginated, so show the unread bar!
var showBar = pos < 0 || pos === null;
if (this.state.showTopUnreadMessagesBar != showBar) {
this.setState({showTopUnreadMessagesBar: showBar},