diff --git a/src/components/structures/FilePanel.js b/src/components/structures/FilePanel.js index 9b8c197889..58888d39b3 100644 --- a/src/components/structures/FilePanel.js +++ b/src/components/structures/FilePanel.js @@ -55,6 +55,7 @@ var FilePanel = React.createClass({ client.getOrCreateFilter("FILTER_FILES_" + client.credentials.userId, filter).then( (filterId)=>{ + filter.filterId = filterId; var timelineSet = this.state.room.getOrCreateFilteredTimelineSet(filter); this.setState({ timelineSet: timelineSet }); }, @@ -93,6 +94,7 @@ var FilePanel = React.createClass({ if (this.state.timelineSet) { return ( ); var topUnreadMessagesBar = null; diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 6e337eb6ab..122737ed52 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -90,6 +90,9 @@ var TimelinePanel = React.createClass({ // maximum number of events to show in a timeline timelineCap: React.PropTypes.number, + + // classname to use for the messagepanel + className: React.PropTypes.string.isRequired, }, statics: { @@ -827,7 +830,7 @@ var TimelinePanel = React.createClass({ // if we're at the end of the live timeline, append the pending events if (!this._timelineWindow.canPaginate(EventTimeline.FORWARDS)) { - events.push(... this.props.timelineSet.room.getPendingEvents()); + events.push(... this.props.timelineSet.getPendingEvents()); } return events; @@ -941,7 +944,7 @@ var TimelinePanel = React.createClass({ // exist. if (this.state.timelineLoading) { return ( -
+
); @@ -973,6 +976,7 @@ var TimelinePanel = React.createClass({ onScroll={ this.onMessageListScroll } onFillRequest={ this.onMessageListFillRequest } opacity={ this.props.opacity } + className={ this.props.className } /> ); },