You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-19 20:23:18 +03:00
use new onRoomTimelineReset API to let notif timeline reset itself
This commit is contained in:
@ -387,8 +387,8 @@ var TimelinePanel = React.createClass({
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
onRoomTimelineReset: function(room) {
|
onRoomTimelineReset: function(room, timelineSet) {
|
||||||
if (room !== this.props.timelineSet.room) return;
|
if (timelineSet !== this.props.timelineSet) return;
|
||||||
|
|
||||||
if (this.refs.messagePanel && this.refs.messagePanel.isAtBottom()) {
|
if (this.refs.messagePanel && this.refs.messagePanel.isAtBottom()) {
|
||||||
this._loadTimeline();
|
this._loadTimeline();
|
||||||
|
Reference in New Issue
Block a user