CreateRoom: remove reference to encryption module
The CreateRoom structure isn't currently used, but contained a reference to the (now defunct) encryption module; remove the reference for now.pull/21833/head
parent
0df6209a57
commit
e046f5359f
|
@ -24,7 +24,6 @@ var PresetValues = {
|
||||||
Custom: "custom",
|
Custom: "custom",
|
||||||
};
|
};
|
||||||
var q = require('q');
|
var q = require('q');
|
||||||
var encryption = require("../../encryption");
|
|
||||||
var sdk = require('../../index');
|
var sdk = require('../../index');
|
||||||
|
|
||||||
module.exports = React.createClass({
|
module.exports = React.createClass({
|
||||||
|
@ -108,17 +107,8 @@ module.exports = React.createClass({
|
||||||
|
|
||||||
var deferred = cli.createRoom(options);
|
var deferred = cli.createRoom(options);
|
||||||
|
|
||||||
var response;
|
|
||||||
|
|
||||||
if (this.state.encrypt) {
|
if (this.state.encrypt) {
|
||||||
deferred = deferred.then(function(res) {
|
// TODO
|
||||||
response = res;
|
|
||||||
return encryption.enableEncryption(
|
|
||||||
cli, response.room_id, options.invite
|
|
||||||
);
|
|
||||||
}).then(function() {
|
|
||||||
return q(response) }
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({
|
this.setState({
|
||||||
|
|
Loading…
Reference in New Issue