another null check

This commit is contained in:
Matthew Hodgson 2016-09-09 02:28:14 +01:00
parent f4d939da81
commit db61d8e8ad

View File

@ -148,6 +148,7 @@ module.exports = React.createClass({
onRoomTimeline: function(ev, room, toStartOfTimeline, removed, data) {
if (toStartOfTimeline) return;
if (!room) return;
if (data.timeline.getTimelineSet() !== room.getUnfilteredTimelineSet()) return;
this._delayedRefreshRoomList();
},