Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #2078 from psaavedra/fix_render_in_CreateRoomDialog
Browse files Browse the repository at this point in the history
CreateRoomDialog is rendered before getting the config default_federate
  • Loading branch information
t3chguy authored Jul 24, 2018
2 parents b8ca656 + 77ab7d2 commit fe3850d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/views/dialogs/CreateRoomDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fe3850d

Please sign in to comment.