|
@@ -332,7 +332,7 @@ JitsiConference.prototype.lock = function (password) {
|
332
|
332
|
|
333
|
333
|
var conference = this;
|
334
|
334
|
return new Promise(function (resolve, reject) {
|
335
|
|
- conference.xmpp.lockRoom(password, function () {
|
|
335
|
+ conference.room.lockRoom(password || "", function () {
|
336
|
336
|
resolve();
|
337
|
337
|
}, function (err) {
|
338
|
338
|
reject(err);
|
|
@@ -347,7 +347,7 @@ JitsiConference.prototype.lock = function (password) {
|
347
|
347
|
* @returns {Promise}
|
348
|
348
|
*/
|
349
|
349
|
JitsiConference.prototype.unlock = function () {
|
350
|
|
- return this.lock(undefined);
|
|
350
|
+ return this.lock();
|
351
|
351
|
};
|
352
|
352
|
|
353
|
353
|
/**
|
|
@@ -10482,8 +10482,7 @@ module.exports = TraceablePeerConnection;
|
10482
|
10482
|
}).call(this,"/modules/xmpp/TraceablePeerConnection.js")
|
10483
|
10483
|
},{"../../service/xmpp/XMPPEvents":87,"../RTC/RTC":16,"../RTC/RTCBrowserType.js":17,"./LocalSSRCReplacement":29,"jitsi-meet-logger":48,"sdp-interop":66,"sdp-simulcast":69,"sdp-transform":76}],34:[function(require,module,exports){
|
10484
|
10484
|
(function (__filename){
|
10485
|
|
-/* global $, $iq, APP, config, messageHandler,
|
10486
|
|
- roomName, sessionTerminated, Strophe, Util */
|
|
10485
|
+/* global $, $iq, Promise, Strophe */
|
10487
|
10486
|
|
10488
|
10487
|
var logger = require("jitsi-meet-logger").getLogger(__filename);
|
10489
|
10488
|
var XMPPEvents = require("../../service/xmpp/XMPPEvents");
|
|
@@ -10838,6 +10837,22 @@ Moderator.prototype.allocateConferenceFocus = function (callback) {
|
10838
|
10837
|
);
|
10839
|
10838
|
};
|
10840
|
10839
|
|
|
10840
|
+Moderator.prototype.authenticate = function () {
|
|
10841
|
+ var self = this;
|
|
10842
|
+ return new Promise(function (resolve, reject) {
|
|
10843
|
+ self.connection.sendIQ(
|
|
10844
|
+ self.createConferenceIq(),
|
|
10845
|
+ function (result) {
|
|
10846
|
+ self.parseSessionId(result);
|
|
10847
|
+ resolve();
|
|
10848
|
+ }, function (error) {
|
|
10849
|
+ var code = $(error).find('>error').attr('code');
|
|
10850
|
+ reject(error, code);
|
|
10851
|
+ }
|
|
10852
|
+ );
|
|
10853
|
+ });
|
|
10854
|
+};
|
|
10855
|
+
|
10841
|
10856
|
Moderator.prototype.getLoginUrl = function (urlCallback, failureCallback) {
|
10842
|
10857
|
var iq = $iq({to: this.getFocusComponent(), type: 'get'});
|
10843
|
10858
|
iq.c('login-url', {
|