Merge pull request #2078 from psaavedra/fix_render_in_CreateRoomDialog

CreateRoomDialog is rendered before getting the config default_federate
pull/21833/head
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
1 changed files with 1 additions and 1 deletions

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;