Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
oops, actually refresh roomlist when its state changes!
Browse files Browse the repository at this point in the history
  • Loading branch information
ara4n committed Apr 20, 2017
1 parent 0d8d3c6 commit 35a16ed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/views/rooms/RoomList.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ module.exports = React.createClass({
shouldComponentUpdate: function(nextProps, nextState) {
if (nextProps.collapsed !== this.props.collapsed) return true;
if (nextProps.searchFilter !== this.props.searchFilter) return true;
if (nextState.lists !== this.props.lists ||
nextState.isLoadingLeftRooms !== this.isLoadingLeftRooms ||
nextState.incomingCall !== this.incomingCall) return true;
return false;
},

Expand Down

0 comments on commit 35a16ed

Please sign in to comment.