another null check

pull/21833/head
Matthew Hodgson 2016-09-09 02:28:14 +01:00
parent f4d939da81
commit db61d8e8ad
1 changed files with 1 additions and 0 deletions

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();
},