Prettifying the code related to showing the feedback dialog

pull/610/head
hristoterezov 9 years ago
parent 73b4ad5a63
commit 7c7ce66ae4
  1. 7
      conference.js

@ -125,12 +125,11 @@ function muteLocalVideo (muted) {
function hangup (requestFeedback = false) {
APP.conference._room.leave().then(() => {
connection.disconnect();
let promise = Promise.resolve();
if (requestFeedback) {
promise = APP.UI.requestFeedback();
return APP.UI.requestFeedback();
} else {
return Promise.resolve();
}
return promise;
}).then(function () {
if (!config.enableWelcomePage) {
return;

Loading…
Cancel
Save