You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-13 08:02:38 +03:00
oops, actually refresh roomlist when its state changes!
This commit is contained in:
@@ -44,6 +44,9 @@ module.exports = React.createClass({
|
|||||||
shouldComponentUpdate: function(nextProps, nextState) {
|
shouldComponentUpdate: function(nextProps, nextState) {
|
||||||
if (nextProps.collapsed !== this.props.collapsed) return true;
|
if (nextProps.collapsed !== this.props.collapsed) return true;
|
||||||
if (nextProps.searchFilter !== this.props.searchFilter) 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;
|
return false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user