Make end call button work for conf calls

This commit is contained in:
David Baker 2015-10-01 09:42:58 +01:00
parent cb89d3760a
commit 5004a3a5b3
2 changed files with 16 additions and 5 deletions

View file

@ -264,9 +264,16 @@ if (!global.mxCallHandler) {
var callHandler = {
getCallForRoom: function(roomId) {
return (
module.exports.getCall(roomId)
);
var call = module.exports.getCall(roomId);
if (call) return call;
if (Modulator.hasConferenceHandler()) {
var ConferenceHandler = Modulator.getConferenceHandler();
call = ConferenceHandler.getConferenceCallForRoom(roomId);
}
if (call) return call;
return null;
},
getCall: function(roomId) {