mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 00:31:31 +03:00
fix m.federate always being false because value is a string. Y HTML...
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
e9afcec5b2
commit
6e39e72849
2 changed files with 3 additions and 6 deletions
|
@ -801,12 +801,9 @@ module.exports = React.createClass({
|
|||
</span>,
|
||||
onFinished: (shouldCreate, name, noFederate) => {
|
||||
if (shouldCreate) {
|
||||
const createOpts = {
|
||||
creation_content: {
|
||||
"m.federate": !noFederate,
|
||||
},
|
||||
};
|
||||
const createOpts = {};
|
||||
if (name) createOpts.name = name;
|
||||
if (noFederate) createOpts.creation_content = {'m.federate': false};
|
||||
createRoom({createOpts}).done();
|
||||
}
|
||||
},
|
||||
|
|
|
@ -56,7 +56,7 @@ export default React.createClass({
|
|||
},
|
||||
|
||||
onOk: function() {
|
||||
this.props.onFinished(true, this.refs.textinput.value, this.refs.checkbox.value);
|
||||
this.props.onFinished(true, this.refs.textinput.value, this.refs.checkbox.checked);
|
||||
},
|
||||
|
||||
onCancel: function() {
|
||||
|
|
Loading…
Reference in a new issue