fix(api-devices): Initial device function calls
This commit is contained in:
@@ -7,6 +7,8 @@ declare var config: Object;
|
||||
|
||||
const logger = require('jitsi-meet-logger').getLogger(__filename);
|
||||
|
||||
import { configureInitialDevices } from '../devices';
|
||||
|
||||
export {
|
||||
connectionEstablished,
|
||||
connectionFailed,
|
||||
@@ -25,12 +27,13 @@ export function connect() {
|
||||
|
||||
// XXX For web based version we use conference initialization logic
|
||||
// from the old app (at the moment of writing).
|
||||
return APP.conference.init({
|
||||
roomName: room
|
||||
}).catch(error => {
|
||||
APP.API.notifyConferenceLeft(APP.conference.roomName);
|
||||
logger.error(error);
|
||||
});
|
||||
return dispatch(configureInitialDevices()).then(
|
||||
() => APP.conference.init({
|
||||
roomName: room
|
||||
}).catch(error => {
|
||||
APP.API.notifyConferenceLeft(APP.conference.roomName);
|
||||
logger.error(error);
|
||||
}));
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user