fix(conference): API left event.

This commit is contained in:
Hristo Terezov 2019-05-30 14:24:58 +01:00
parent fa3888991f
commit d01cfc8466
1 changed files with 7 additions and 5 deletions

View File

@ -488,10 +488,13 @@ class ConferenceConnector {
* call in hangup() to resolve when all operations are finished.
*/
function disconnect() {
connection.disconnect();
const onDisconnected = () => {
APP.API.notifyConferenceLeft(APP.conference.roomName);
return Promise.resolve();
};
return connection.disconnect().then(onDisconnected, onDisconnected);
}
/**
@ -2603,8 +2606,7 @@ export default {
leaveRoomAndDisconnect() {
APP.store.dispatch(conferenceWillLeave(room));
return room.leave()
.then(disconnect, disconnect);
return room.leave().then(disconnect, disconnect);
},
/**