|
@@ -5,7 +5,7 @@ import {
|
5
|
5
|
createApiEvent,
|
6
|
6
|
sendAnalytics
|
7
|
7
|
} from '../../react/features/analytics';
|
8
|
|
-import { setSubject } from '../../react/features/base/conference';
|
|
8
|
+import { setPassword, setSubject } from '../../react/features/base/conference';
|
9
|
9
|
import { parseJWTFromURLParams } from '../../react/features/base/jwt';
|
10
|
10
|
import { invite } from '../../react/features/invite';
|
11
|
11
|
import { toggleTileView } from '../../react/features/video-layout';
|
|
@@ -65,6 +65,28 @@ function initCommands() {
|
65
|
65
|
sendAnalytics(createApiEvent('display.name.changed'));
|
66
|
66
|
APP.conference.changeLocalDisplayName(displayName);
|
67
|
67
|
},
|
|
68
|
+ 'password': password => {
|
|
69
|
+ const { conference, passwordRequired }
|
|
70
|
+ = APP.store.getState()['features/base/conference'];
|
|
71
|
+
|
|
72
|
+ if (passwordRequired) {
|
|
73
|
+ sendAnalytics(createApiEvent('submit.password'));
|
|
74
|
+
|
|
75
|
+ APP.store.dispatch(setPassword(
|
|
76
|
+ passwordRequired,
|
|
77
|
+ passwordRequired.join,
|
|
78
|
+ password
|
|
79
|
+ ));
|
|
80
|
+ } else {
|
|
81
|
+ sendAnalytics(createApiEvent('password.changed'));
|
|
82
|
+
|
|
83
|
+ APP.store.dispatch(setPassword(
|
|
84
|
+ conference,
|
|
85
|
+ conference.lock,
|
|
86
|
+ password
|
|
87
|
+ ));
|
|
88
|
+ }
|
|
89
|
+ },
|
68
|
90
|
'proxy-connection-event': event => {
|
69
|
91
|
APP.conference.onProxyConnectionEvent(event);
|
70
|
92
|
},
|
|
@@ -627,6 +649,16 @@ class API {
|
627
|
649
|
});
|
628
|
650
|
}
|
629
|
651
|
|
|
652
|
+ /**
|
|
653
|
+ * Notify external application of the current meeting requiring a password
|
|
654
|
+ * to join.
|
|
655
|
+ *
|
|
656
|
+ * @returns {void}
|
|
657
|
+ */
|
|
658
|
+ notifyOnPasswordRequired() {
|
|
659
|
+ this._sendEvent({ name: 'password-required' });
|
|
660
|
+ }
|
|
661
|
+
|
630
|
662
|
/**
|
631
|
663
|
* Notify external application (if API is enabled) that the screen sharing
|
632
|
664
|
* has been turned on/off.
|