You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-19 20:23:18 +03:00
Show "jump to message" when message is not paginated
This commit is contained in:
@ -1280,7 +1280,8 @@ module.exports = React.createClass({
|
|||||||
|
|
||||||
// we want to show the bar if the read-marker is off the top of the
|
// we want to show the bar if the read-marker is off the top of the
|
||||||
// screen.
|
// 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) {
|
if (this.state.showTopUnreadMessagesBar != showBar) {
|
||||||
this.setState({showTopUnreadMessagesBar: showBar},
|
this.setState({showTopUnreadMessagesBar: showBar},
|
||||||
|
Reference in New Issue
Block a user