mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-15 16:21:36 +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>,
|
</span>,
|
||||||
onFinished: (shouldCreate, name, noFederate) => {
|
onFinished: (shouldCreate, name, noFederate) => {
|
||||||
if (shouldCreate) {
|
if (shouldCreate) {
|
||||||
const createOpts = {
|
const createOpts = {};
|
||||||
creation_content: {
|
|
||||||
"m.federate": !noFederate,
|
|
||||||
},
|
|
||||||
};
|
|
||||||
if (name) createOpts.name = name;
|
if (name) createOpts.name = name;
|
||||||
|
if (noFederate) createOpts.creation_content = {'m.federate': false};
|
||||||
createRoom({createOpts}).done();
|
createRoom({createOpts}).done();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -56,7 +56,7 @@ export default React.createClass({
|
||||||
},
|
},
|
||||||
|
|
||||||
onOk: function() {
|
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() {
|
onCancel: function() {
|
||||||
|
|
Loading…
Reference in a new issue