瀏覽代碼

Updates lib-jitsi-meet.js

j8
hristoterezov 9 年之前
父節點
當前提交
00e606663d
共有 1 個檔案被更改,包括 3 行新增25 行删除
  1. 3
    25
      libs/lib-jitsi-meet.js

+ 3
- 25
libs/lib-jitsi-meet.js 查看文件

4927
 }
4927
 }
4928
 
4928
 
4929
 function Settings(conferenceID) {
4929
 function Settings(conferenceID) {
4930
-    this.email = '';
4931
     this.displayName = '';
4930
     this.displayName = '';
4932
     this.userId;
4931
     this.userId;
4933
-    this.language = null;
4934
     this.confSettings = null;
4932
     this.confSettings = null;
4935
     this.conferenceID = conferenceID;
4933
     this.conferenceID = conferenceID;
4936
     if (supportsLocalStorage()) {
4934
     if (supportsLocalStorage()) {
4945
             this.save();
4943
             this.save();
4946
         }
4944
         }
4947
         this.userId = this.confSettings.jitsiMeetId || '';
4945
         this.userId = this.confSettings.jitsiMeetId || '';
4948
-        this.email = this.confSettings.email || '';
4949
         this.displayName = this.confSettings.displayname || '';
4946
         this.displayName = this.confSettings.displayname || '';
4950
-        this.language = this.confSettings.language;
4951
     } else {
4947
     } else {
4952
         logger.log("local storage is not supported");
4948
         logger.log("local storage is not supported");
4953
         this.userId = generateUniqueId();
4949
         this.userId = generateUniqueId();
4966
     this.save();
4962
     this.save();
4967
     return this.displayName;
4963
     return this.displayName;
4968
 },
4964
 },
4969
-Settings.prototype.setEmail = function (newEmail) {
4970
-    this.email = newEmail;
4971
-    if(this.confSettings != null)
4972
-        this.confSettings.email = newEmail;
4973
-    this.save();
4974
-    return this.email;
4975
-},
4976
 Settings.prototype.getSettings = function () {
4965
 Settings.prototype.getSettings = function () {
4977
     return {
4966
     return {
4978
-        email: this.email,
4979
         displayName: this.displayName,
4967
         displayName: this.displayName,
4980
-        uid: this.userId,
4981
-        language: this.language
4968
+        uid: this.userId
4982
     };
4969
     };
4983
 },
4970
 },
4984
-Settings.prototype.setLanguage = function (lang) {
4985
-    this.language = lang;
4986
-    if(this.confSettings != null)
4987
-        this.confSettings.language = lang;
4988
-    this.save();
4989
-}
4990
 
4971
 
4991
 module.exports = Settings;
4972
 module.exports = Settings;
4992
 
4973
 
6333
             case "userId":
6314
             case "userId":
6334
                 member.id = node.value;
6315
                 member.id = node.value;
6335
                 break;
6316
                 break;
6336
-            case "email":
6337
-                member.email = node.value;
6338
-                break;
6339
             case "bridgeIsDown":
6317
             case "bridgeIsDown":
6340
                 if(!this.bridgeIsDown) {
6318
                 if(!this.bridgeIsDown) {
6341
                     this.bridgeIsDown = true;
6319
                     this.bridgeIsDown = true;
6388
             logger.info("Ignore focus: " + from + ", real JID: " + member.jid);
6366
             logger.info("Ignore focus: " + from + ", real JID: " + member.jid);
6389
         }
6367
         }
6390
         else {
6368
         else {
6391
-            this.eventEmitter.emit(XMPPEvents.MUC_MEMBER_JOINED, from, member.id || member.email, member.nick);
6369
+            this.eventEmitter.emit(XMPPEvents.MUC_MEMBER_JOINED, from, member.id, member.nick);
6392
         }
6370
         }
6393
     } else {
6371
     } else {
6394
         // Presence update for existing participant
6372
         // Presence update for existing participant
6406
 
6384
 
6407
 
6385
 
6408
     if(!member.isFocus)
6386
     if(!member.isFocus)
6409
-        this.eventEmitter.emit(XMPPEvents.USER_ID_CHANGED, from, member.id || member.email);
6387
+        this.eventEmitter.emit(XMPPEvents.USER_ID_CHANGED, from, member.id);
6410
 
6388
 
6411
     // Trigger status message update
6389
     // Trigger status message update
6412
     if (member.status) {
6390
     if (member.status) {

Loading…
取消
儲存