Skip to content

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

fix reopening require pass dialog

Ilya Daynatovich7a2eca37062e
diff --git a/modules/UI/invite/RequirePasswordDialog.js b/modules/UI/invite/RequirePasswordDialog.js
index bc3fba7d0b..0dcdf82404 100644
--- a/modules/UI/invite/RequirePasswordDialog.js
+++ b/modules/UI/invite/RequirePasswordDialog.js
@@ -100,7 +100,16 @@ export default class RequirePasswordDialog {
*/
_submitFunction(e, v, m, f) {
e.preventDefault();
+ this._processInput(v, f);
+ }
+ /**
+ * Processing input in dialog
+ * @param v - value
+ * @param f - form
+ * @private
+ */
+ _processInput(v, f) {
if (v && f.lockKey) {
this.resolve(UIUtil.escapeHtml(f.lockKey));
} else {
@@ -112,7 +121,8 @@ export default class RequirePasswordDialog {
* Close dialog callback
* @private
*/
- _closeFunction() {
+ _closeFunction(e, v, m, f) {
+ this._processInput(v, f);
this._hideError();
this.close();
}