From be33c358763ea04a662bf4135bc7d5008202b07d Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sat, 10 Sep 2016 10:46:30 +0100 Subject: [PATCH] use new onRoomTimelineReset API to let notif timeline reset itself --- src/components/structures/TimelinePanel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/structures/TimelinePanel.js b/src/components/structures/TimelinePanel.js index 9d559ed4a4..8fbe4334c8 100644 --- a/src/components/structures/TimelinePanel.js +++ b/src/components/structures/TimelinePanel.js @@ -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();