Merge pull request #2078 from psaavedra/fix_render_in_CreateRoomDialog

CreateRoomDialog is rendered before getting the config default_federate
This commit is contained in:
Michael Telatynski 2018-07-24 16:03:26 +01:00 committed by GitHub
commit fe3850d61f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -26,7 +26,7 @@ export default React.createClass({
onFinished: PropTypes.func.isRequired,
},
componentDidMount: function() {
componentWillMount: function() {
const config = SdkConfig.get();
// Dialog shows inverse of m.federate (noFederate) strict false check to skip undefined check (default = true)
this.defaultNoFederate = config.default_federate === false;