move RoomSubList.refreshHeader to apply to the whole RoomSubList again

This commit is contained in:
Matthew Hodgson 2017-04-18 19:27:57 +01:00
parent a8daa53a5b
commit acbc3e9f9b
2 changed files with 11 additions and 12 deletions

View file

@ -50,16 +50,16 @@ module.exports = React.createClass({
},
componentWillMount: function() {
constantTimeDispatcher.register("RoomSubList.refreshHeader", this.props.tagName, this.onRefresh);
// constantTimeDispatcher.register("RoomSubList.refreshHeader", this.props.tagName, this.onRefresh);
},
componentWillUnmount: function() {
constantTimeDispatcher.unregister("RoomSubList.refreshHeader", this.props.tagName, this.onRefresh);
// constantTimeDispatcher.unregister("RoomSubList.refreshHeader", this.props.tagName, this.onRefresh);
},
onRefresh: function() {
this.forceUpdate();
},
// onRefresh: function() {
// this.forceUpdate();
// },
render: function() {
var TintableSvg = sdk.getComponent("elements.TintableSvg");