Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Makes sure we always resolve(call the callback) in feedback dialog.

damenchoeb2e70974919
diff --git a/modules/UI/feedback/FeedbackWindow.js b/modules/UI/feedback/FeedbackWindow.js
index 5807aaee88..6a2b1882f2 100644
--- a/modules/UI/feedback/FeedbackWindow.js
+++ b/modules/UI/feedback/FeedbackWindow.js
@@ -176,6 +176,13 @@ export default class Dialog {
});
this.$el = this.window.$el;
+ AJS.dialog2(selector).on("hide", function() {
+ if (this.onCloseCallback) {
+ this.onCloseCallback();
+ this.onCloseCallback = null;
+ }
+ }.bind(this));
+
this.setState();
}
@@ -201,11 +208,6 @@ export default class Dialog {
hide() {
this.window.hide();
-
- if (this.onCloseCallback) {
- this.onCloseCallback();
- this.onCloseCallback = null;
- }
}
onFeedbackSubmitted() {