1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-11 20:22:36 +03:00

Merge pull request #675 from matrix-org/dbkr/fix_timeline_notifs_empty

Fix timeline & notifs panel spuriously being empty
This commit is contained in:
Richard van der Hoff
2017-02-03 11:35:28 +00:00
committed by GitHub

View File

@@ -993,7 +993,7 @@ var TimelinePanel = React.createClass({
); );
} }
if (this.state.events.length == 0) { if (this.state.events.length == 0 && !this.state.canBackPaginate && this.props.empty) {
return ( return (
<div className={ this.props.className + " mx_RoomView_messageListWrapper" }> <div className={ this.props.className + " mx_RoomView_messageListWrapper" }>
<div className="mx_RoomView_empty">{ this.props.empty }</div> <div className="mx_RoomView_empty">{ this.props.empty }</div>