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
|
* @param {boolean} [requestFeedback=false] if user feedback should be requested
|
||||||
*/
|
*/
|
||||||
function hangup (requestFeedback = false) {
|
function hangup (requestFeedback = false) {
|
||||||
let promise = Promise.resolve();
|
APP.conference._room.leave().then(() => {
|
||||||
|
|
||||||
if (requestFeedback) {
|
|
||||||
promise = APP.UI.requestFeedback();
|
|
||||||
}
|
|
||||||
|
|
||||||
promise.then(function () {
|
|
||||||
connection.disconnect();
|
connection.disconnect();
|
||||||
|
let promise = Promise.resolve();
|
||||||
|
|
||||||
|
if (requestFeedback) {
|
||||||
|
promise = APP.UI.requestFeedback();
|
||||||
|
}
|
||||||
|
return promise;
|
||||||
|
}).then(function () {
|
||||||
if (!config.enableWelcomePage) {
|
if (!config.enableWelcomePage) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue