1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-16 22:01:54 +03:00

use new onRoomTimelineReset API to let notif timeline reset itself

This commit is contained in:
Matthew Hodgson
2016-09-10 10:46:30 +01:00
parent 6f270fd621
commit be33c35876

View File

@ -387,8 +387,8 @@ var TimelinePanel = React.createClass({
});
},
onRoomTimelineReset: function(room) {
if (room !== this.props.timelineSet.room) return;
onRoomTimelineReset: function(room, timelineSet) {
if (timelineSet !== this.props.timelineSet) return;
if (this.refs.messagePanel && this.refs.messagePanel.isAtBottom()) {
this._loadTimeline();