1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

update to use new API based on js-sdk PR input

This commit is contained in:
Matthew Hodgson
2016-09-08 22:48:44 +01:00
parent 3c7864a7ad
commit 4aef352a5c
6 changed files with 16 additions and 8 deletions

View File

@ -320,8 +320,8 @@ var TimelinePanel = React.createClass({
},
onRoomTimeline: function(ev, room, toStartOfTimeline, removed, data) {
// ignore events for other rooms
if (data.timelineSet !== this.props.timelineSet) return;
// ignore events for other timeline sets
if (data.timeline.getTimelineSet() !== this.props.timelineSet) return;
// ignore anything but real-time updates at the end of the room:
// updates from pagination will happen when the paginate completes.