Added JitsiConference.leave() when the hangup button is pressed
This commit is contained in:
parent
2b7ae5c167
commit
73b4ad5a63
|
@ -123,15 +123,15 @@ function muteLocalVideo (muted) {
|
|||
* @param {boolean} [requestFeedback=false] if user feedback should be requested
|
||||
*/
|
||||
function hangup (requestFeedback = false) {
|
||||
APP.conference._room.leave().then(() => {
|
||||
connection.disconnect();
|
||||
let promise = Promise.resolve();
|
||||
|
||||
if (requestFeedback) {
|
||||
promise = APP.UI.requestFeedback();
|
||||
}
|
||||
|
||||
promise.then(function () {
|
||||
connection.disconnect();
|
||||
|
||||
return promise;
|
||||
}).then(function () {
|
||||
if (!config.enableWelcomePage) {
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue