Hide 1:1 conference rooms

This commit is contained in:
Kegan Dougal
2015-09-11 16:55:48 +01:00
parent e3b02a295c
commit fc892b3580
3 changed files with 49 additions and 11 deletions
+3 -3
View File
@@ -57,7 +57,7 @@ var MatrixClientPeg = require("./MatrixClientPeg");
var Modal = require("./Modal");
var ComponentBroker = require('./ComponentBroker');
var ErrorDialog = ComponentBroker.get("organisms/ErrorDialog");
var ConferenceHandler = require("./ConferenceHandler");
var ConferenceCall = require("./ConferenceHandler").ConferenceCall;
var Matrix = require("matrix-js-sdk");
var dis = require("./dispatcher");
@@ -196,10 +196,10 @@ dis.register(function(payload) {
}
else { // > 2
console.log("Place conference call in %s", payload.room_id);
var confHandler = new ConferenceHandler(
var confCall = new ConferenceCall(
MatrixClientPeg.get(), payload.room_id
);
confHandler.setup().done(function(call) {
confCall.setup().done(function(call) {
placeCall(call);
}, function(err) {
console.error("Failed to setup conference call: %s", err);