Use the new interface for providing conf call functionality. Doesn't shoe it in the right room yet.
This commit is contained in:
parent
fd6e7663cb
commit
94a6f856d1
6 changed files with 92 additions and 351 deletions
|
@ -16,9 +16,11 @@ limitations under the License.
|
|||
|
||||
'use strict';
|
||||
var dis = require("../../../dispatcher");
|
||||
var CallHandler = require("../../../CallHandler");
|
||||
var CallHandler = require("matrix-react-sdk/lib/CallHandler");
|
||||
var MatrixClientPeg = require("../../../MatrixClientPeg");
|
||||
|
||||
var VectorConferenceHandler = require('./VectorConferenceHandler');
|
||||
|
||||
/*
|
||||
* State vars:
|
||||
* this.state.call = MatrixCall|null
|
||||
|
@ -66,7 +68,10 @@ module.exports = {
|
|||
},
|
||||
|
||||
showCall: function(roomId) {
|
||||
var call = CallHandler.getCallForRoom(roomId);
|
||||
var call = (
|
||||
CallHandler.getCallForRoom(roomId) ||
|
||||
VectorConferenceHandler.getConferenceCallForRoom(roomId)
|
||||
);
|
||||
if (call) {
|
||||
call.setLocalVideoElement(this.getVideoView().getLocalVideoElement());
|
||||
// N.B. the remote video element is used for playback for audio for voice calls
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue