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

Commit fe3850d

Browse files
authored
Merge pull request #2078 from psaavedra/fix_render_in_CreateRoomDialog
CreateRoomDialog is rendered before getting the config default_federate
2 parents b8ca656 + 77ab7d2 commit fe3850d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/views/dialogs/CreateRoomDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default React.createClass({
2626
onFinished: PropTypes.func.isRequired,
2727
},
2828

29-
componentDidMount: function() {
29+
componentWillMount: function() {
3030
const config = SdkConfig.get();
3131
// Dialog shows inverse of m.federate (noFederate) strict false check to skip undefined check (default = true)
3232
this.defaultNoFederate = config.default_federate === false;

0 commit comments

Comments
 (0)