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

Commit 470e760

Browse files
committed
Fix timeline & notifs panel spuriously being empty
Only claim there's nothing to display once we've failed to back paginate, otherwise we'll show the empty message instead of the MessagePanel and therefore never try to back-paginate.
1 parent 917be72 commit 470e760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/structures/TimelinePanel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,7 @@ var TimelinePanel = React.createClass({
993993
);
994994
}
995995

996-
if (this.state.events.length == 0) {
996+
if (this.state.events.length == 0 && !this.state.canBackPaginate && this.props.empty) {
997997
return (
998998
<div className={ this.props.className + " mx_RoomView_messageListWrapper" }>
999999
<div className="mx_RoomView_empty">{ this.props.empty }</div>

0 commit comments

Comments
 (0)