mirror of
https://github.com/element-hq/element-web
synced 2024-11-23 17:56:01 +03:00
oops, actually refresh roomlist when its state changes!
This commit is contained in:
parent
0d8d3c6710
commit
35a16edccc
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue