Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Show "jump to message" when message is not paginated
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Barnard committed Apr 25, 2017
1 parent 5c83d4d commit 96e7479
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/structures/RoomView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit 96e7479

Please sign in to comment.