浏览代码

use lib to change chat subject

master
isymchych 9 年前
父节点
当前提交
d31aca4483
共有 4 个文件被更改,包括 110 次插入83 次删除
  1. 5
    4
      conference.js
  2. 102
    77
      libs/lib-jitsi-meet.js
  3. 1
    1
      modules/UI/side_pannels/chat/Commands.js
  4. 2
    1
      service/UI/UIEvents.js

+ 5
- 4
conference.js 查看文件

@@ -634,10 +634,11 @@ export default {
634 634
 
635 635
         });
636 636
 
637
-        APP.UI.addListener(UIEvents.TOPIC_CHANGED, (topic) => {
638
-            // FIXME handle topic change
639
-            // APP.xmpp.setSubject(topic);
640
-            // on SUBJECT_CHANGED UI.setSubject(topic);
637
+        APP.UI.addListener(UIEvents.SUBJECT_CHANGED, (topic) => {
638
+            room.setSubject(topic);
639
+        });
640
+        room.on(ConferenceEvents.SUBJECT_CHANGED, function (subject) {
641
+            APP.UI.setSubject(subject);
641 642
         });
642 643
 
643 644
         APP.UI.addListener(UIEvents.USER_KICKED, (id) => {

+ 102
- 77
libs/lib-jitsi-meet.js 查看文件

@@ -258,6 +258,16 @@ JitsiConference.prototype.setDisplayName = function(name) {
258 258
     }
259 259
 };
260 260
 
261
+/**
262
+ * Set new subject for this conference. (available only for moderator)
263
+ * @param {string} subject new subject
264
+ */
265
+JitsiConference.prototype.setSubject = function (subject) {
266
+    if (this.room && this.isModerator()) {
267
+        this.room.setSubject(subject);
268
+    }
269
+};
270
+
261 271
 /**
262 272
  * Adds JitsiLocalTrack object to the conference.
263 273
  * @param track the JitsiLocalTrack object.
@@ -785,6 +795,10 @@ function setupListeners(conference) {
785 795
         }
786 796
     );
787 797
 
798
+    conference.room.addListener(XMPPEvents.SUBJECT_CHANGED, function (subject) {
799
+        conference.eventEmitter.emit(JitsiConferenceEvents.SUBJECT_CHANGED, subject);
800
+    });
801
+
788 802
     conference.room.addListener(XMPPEvents.MUC_JOINED, function () {
789 803
         conference.eventEmitter.emit(JitsiConferenceEvents.CONFERENCE_JOINED);
790 804
     });
@@ -1001,7 +1015,7 @@ function setupListeners(conference) {
1001 1015
 module.exports = JitsiConference;
1002 1016
 
1003 1017
 }).call(this,"/JitsiConference.js")
1004
-},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiParticipant":8,"./JitsiTrackEvents":10,"./modules/DTMF/JitsiDTMFManager":11,"./modules/RTC/RTC":16,"./modules/settings/Settings":21,"./modules/statistics/statistics":25,"./service/RTC/RTCEvents":132,"./service/authentication/AuthenticationEvents":134,"./service/xmpp/XMPPEvents":138,"events":45,"jitsi-meet-logger":49}],2:[function(require,module,exports){
1018
+},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiParticipant":8,"./JitsiTrackEvents":10,"./modules/DTMF/JitsiDTMFManager":11,"./modules/RTC/RTC":16,"./modules/settings/Settings":21,"./modules/statistics/statistics":25,"./service/RTC/RTCEvents":136,"./service/authentication/AuthenticationEvents":138,"./service/xmpp/XMPPEvents":142,"events":45,"jitsi-meet-logger":49}],2:[function(require,module,exports){
1005 1019
 /**
1006 1020
  * Enumeration with the errors for the conference.
1007 1021
  * @type {{string: string}}
@@ -1077,6 +1091,10 @@ var JitsiConferenceEvents = {
1077 1091
      * A user has changed it display name
1078 1092
      */
1079 1093
     DISPLAY_NAME_CHANGED: "conference.displayNameChanged",
1094
+    /**
1095
+     * Indicates that subject of the conference has changed.
1096
+     */
1097
+    SUBJECT_CHANGED: "conference.subjectChanged",
1080 1098
     /**
1081 1099
      * A participant avatar has changed.
1082 1100
      */
@@ -1419,7 +1437,7 @@ window.Promise = window.Promise || require("es6-promise").Promise;
1419 1437
 
1420 1438
 module.exports = LibJitsiMeet;
1421 1439
 
1422
-},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiConnection":4,"./JitsiConnectionErrors":5,"./JitsiConnectionEvents":6,"./JitsiTrackErrors":9,"./JitsiTrackEvents":10,"./modules/RTC/RTC":16,"./modules/statistics/statistics":25,"./service/RTC/Resolutions":133,"es6-promise":47,"jitsi-meet-logger":49}],8:[function(require,module,exports){
1440
+},{"./JitsiConferenceErrors":2,"./JitsiConferenceEvents":3,"./JitsiConnection":4,"./JitsiConnectionErrors":5,"./JitsiConnectionEvents":6,"./JitsiTrackErrors":9,"./JitsiTrackEvents":10,"./modules/RTC/RTC":16,"./modules/statistics/statistics":25,"./service/RTC/Resolutions":137,"es6-promise":47,"jitsi-meet-logger":49}],8:[function(require,module,exports){
1423 1441
 /* global Strophe */
1424 1442
 
1425 1443
 /**
@@ -1867,7 +1885,7 @@ module.exports = DataChannels;
1867 1885
 
1868 1886
 
1869 1887
 }).call(this,"/modules/RTC/DataChannels.js")
1870
-},{"../../service/RTC/RTCEvents":132,"jitsi-meet-logger":49}],13:[function(require,module,exports){
1888
+},{"../../service/RTC/RTCEvents":136,"jitsi-meet-logger":49}],13:[function(require,module,exports){
1871 1889
 var JitsiTrack = require("./JitsiTrack");
1872 1890
 var RTCBrowserType = require("./RTCBrowserType");
1873 1891
 var JitsiTrackEvents = require('../../JitsiTrackEvents');
@@ -2644,7 +2662,7 @@ RTC.prototype.setAudioLevel = function (jid, audioLevel) {
2644 2662
 }
2645 2663
 module.exports = RTC;
2646 2664
 
2647
-},{"../../service/RTC/MediaStreamTypes":131,"../../service/RTC/RTCEvents.js":132,"../../service/desktopsharing/DesktopSharingEventTypes":135,"./DataChannels":12,"./JitsiLocalTrack.js":13,"./JitsiRemoteTrack.js":14,"./JitsiTrack":15,"./RTCBrowserType":17,"./RTCUtils.js":18,"events":45}],17:[function(require,module,exports){
2665
+},{"../../service/RTC/MediaStreamTypes":135,"../../service/RTC/RTCEvents.js":136,"../../service/desktopsharing/DesktopSharingEventTypes":139,"./DataChannels":12,"./JitsiLocalTrack.js":13,"./JitsiRemoteTrack.js":14,"./JitsiTrack":15,"./RTCBrowserType":17,"./RTCUtils.js":18,"events":45}],17:[function(require,module,exports){
2648 2666
 
2649 2667
 var currentBrowser;
2650 2668
 
@@ -3637,7 +3655,7 @@ var RTCUtils = {
3637 3655
 module.exports = RTCUtils;
3638 3656
 
3639 3657
 }).call(this,"/modules/RTC/RTCUtils.js")
3640
-},{"../../JitsiTrackErrors":9,"../../service/RTC/RTCEvents":132,"../../service/RTC/Resolutions":133,"../xmpp/SDPUtil":33,"./RTCBrowserType":17,"./ScreenObtainer":19,"./adapter.screenshare":20,"events":45,"jitsi-meet-logger":49}],19:[function(require,module,exports){
3658
+},{"../../JitsiTrackErrors":9,"../../service/RTC/RTCEvents":136,"../../service/RTC/Resolutions":137,"../xmpp/SDPUtil":33,"./RTCBrowserType":17,"./ScreenObtainer":19,"./adapter.screenshare":20,"events":45,"jitsi-meet-logger":49}],19:[function(require,module,exports){
3641 3659
 (function (__filename){
3642 3660
 /* global chrome, $, alert */
3643 3661
 /* jshint -W003 */
@@ -4053,7 +4071,7 @@ function initFirefoxExtensionDetection(options) {
4053 4071
 module.exports = ScreenObtainer;
4054 4072
 
4055 4073
 }).call(this,"/modules/RTC/ScreenObtainer.js")
4056
-},{"../../JitsiTrackErrors":9,"../../service/desktopsharing/DesktopSharingEventTypes":135,"./RTCBrowserType":17,"./adapter.screenshare":20,"jitsi-meet-logger":49}],20:[function(require,module,exports){
4074
+},{"../../JitsiTrackErrors":9,"../../service/desktopsharing/DesktopSharingEventTypes":139,"./RTCBrowserType":17,"./adapter.screenshare":20,"jitsi-meet-logger":49}],20:[function(require,module,exports){
4057 4075
 (function (__filename){
4058 4076
 /*! adapterjs - v0.12.3 - 2015-11-16 */
4059 4077
 var console = require("jitsi-meet-logger").getLogger(__filename);
@@ -5587,7 +5605,7 @@ CallStats.sendAddIceCandidateFailed = _try_catch(function (e, pc, cs) {
5587 5605
 module.exports = CallStats;
5588 5606
 
5589 5607
 }).call(this,"/modules/statistics/CallStats.js")
5590
-},{"jitsi-meet-logger":49,"jssha":50,"socket.io-client":81}],23:[function(require,module,exports){
5608
+},{"jitsi-meet-logger":49,"jssha":50,"socket.io-client":85}],23:[function(require,module,exports){
5591 5609
 /* global config */
5592 5610
 /**
5593 5611
  * Provides statistics for the local stream.
@@ -6444,7 +6462,7 @@ StatsCollector.prototype.processAudioLevelReport = function () {
6444 6462
 };
6445 6463
 
6446 6464
 }).call(this,"/modules/statistics/RTPStatsCollector.js")
6447
-},{"../../service/statistics/Events":136,"../RTC/RTCBrowserType":17,"jitsi-meet-logger":49}],25:[function(require,module,exports){
6465
+},{"../../service/statistics/Events":140,"../RTC/RTCBrowserType":17,"jitsi-meet-logger":49}],25:[function(require,module,exports){
6448 6466
 /* global require, APP */
6449 6467
 var LocalStats = require("./LocalStatsCollector.js");
6450 6468
 var RTPStats = require("./RTPStatsCollector.js");
@@ -6728,7 +6746,7 @@ Statistics.LOCAL_JID = require("../../service/statistics/constants").LOCAL_JID;
6728 6746
 
6729 6747
 module.exports = Statistics;
6730 6748
 
6731
-},{"../../service/statistics/Events":136,"../../service/statistics/constants":137,"./CallStats":22,"./LocalStatsCollector.js":23,"./RTPStatsCollector.js":24,"events":45}],26:[function(require,module,exports){
6749
+},{"../../service/statistics/Events":140,"../../service/statistics/constants":141,"./CallStats":22,"./LocalStatsCollector.js":23,"./RTPStatsCollector.js":24,"events":45}],26:[function(require,module,exports){
6732 6750
 /**
6733 6751
 /**
6734 6752
  * @const
@@ -7594,7 +7612,6 @@ ChatRoom.prototype.setSubject = function (subject) {
7594 7612
     var msg = $msg({to: this.roomjid, type: 'groupchat'});
7595 7613
     msg.c('subject', subject);
7596 7614
     this.connection.send(msg);
7597
-    logger.log("topic changed to " + subject);
7598 7615
 };
7599 7616
 
7600 7617
 
@@ -8048,7 +8065,7 @@ ChatRoom.prototype.onMute = function (iq) {
8048 8065
 module.exports = ChatRoom;
8049 8066
 
8050 8067
 }).call(this,"/modules/xmpp/ChatRoom.js")
8051
-},{"../../service/xmpp/XMPPEvents":138,"./moderator":35,"./recording":36,"events":45,"jitsi-meet-logger":49}],29:[function(require,module,exports){
8068
+},{"../../service/xmpp/XMPPEvents":142,"./moderator":35,"./recording":36,"events":45,"jitsi-meet-logger":49}],29:[function(require,module,exports){
8052 8069
 (function (__filename){
8053 8070
 /*
8054 8071
  * JingleSession provides an API to manage a single Jingle session. We will
@@ -9847,7 +9864,7 @@ JingleSessionPC.prototype.getIceConnectionState = function () {
9847 9864
 module.exports = JingleSessionPC;
9848 9865
 
9849 9866
 }).call(this,"/modules/xmpp/JingleSessionPC.js")
9850
-},{"../../service/xmpp/XMPPEvents":138,"../RTC/RTC":16,"../RTC/RTCBrowserType":17,"./JingleSession":29,"./SDP":31,"./SDPDiffer":32,"./SDPUtil":33,"./TraceablePeerConnection":34,"async":44,"jitsi-meet-logger":49,"sdp-transform":78}],31:[function(require,module,exports){
9867
+},{"../../service/xmpp/XMPPEvents":142,"../RTC/RTC":16,"../RTC/RTCBrowserType":17,"./JingleSession":29,"./SDP":31,"./SDPDiffer":32,"./SDPUtil":33,"./TraceablePeerConnection":34,"async":44,"jitsi-meet-logger":49,"sdp-transform":82}],31:[function(require,module,exports){
9851 9868
 (function (__filename){
9852 9869
 /* jshint -W117 */
9853 9870
 
@@ -11542,7 +11559,7 @@ TraceablePeerConnection.prototype.getStats = function(callback, errback) {
11542 11559
 module.exports = TraceablePeerConnection;
11543 11560
 
11544 11561
 }).call(this,"/modules/xmpp/TraceablePeerConnection.js")
11545
-},{"../../service/xmpp/XMPPEvents":138,"../RTC/RTC":16,"../RTC/RTCBrowserType.js":17,"../util/RandomUtil":26,"jitsi-meet-logger":49,"sdp-interop":68,"sdp-simulcast":75,"sdp-transform":78}],35:[function(require,module,exports){
11562
+},{"../../service/xmpp/XMPPEvents":142,"../RTC/RTC":16,"../RTC/RTCBrowserType.js":17,"../util/RandomUtil":26,"jitsi-meet-logger":49,"sdp-interop":68,"sdp-simulcast":75,"sdp-transform":82}],35:[function(require,module,exports){
11546 11563
 (function (__filename){
11547 11564
 /* global $, $iq, Promise, Strophe */
11548 11565
 
@@ -11998,7 +12015,7 @@ Moderator.prototype.logout =  function (callback) {
11998 12015
 module.exports = Moderator;
11999 12016
 
12000 12017
 }).call(this,"/modules/xmpp/moderator.js")
12001
-},{"../../service/authentication/AuthenticationEvents":134,"../../service/xmpp/XMPPEvents":138,"jitsi-meet-logger":49}],36:[function(require,module,exports){
12018
+},{"../../service/authentication/AuthenticationEvents":138,"../../service/xmpp/XMPPEvents":142,"jitsi-meet-logger":49}],36:[function(require,module,exports){
12002 12019
 (function (__filename){
12003 12020
 /* global $, $iq, config, connection, focusMucJid, messageHandler,
12004 12021
    Toolbar, Util, Promise */
@@ -12225,7 +12242,7 @@ Recording.prototype.getURL = function () {
12225 12242
 module.exports = Recording;
12226 12243
 
12227 12244
 }).call(this,"/modules/xmpp/recording.js")
12228
-},{"../../service/xmpp/XMPPEvents":138,"jitsi-meet-logger":49}],37:[function(require,module,exports){
12245
+},{"../../service/xmpp/XMPPEvents":142,"jitsi-meet-logger":49}],37:[function(require,module,exports){
12229 12246
 (function (__filename){
12230 12247
 /* jshint -W117 */
12231 12248
 /* a simple MUC connection plugin
@@ -12635,7 +12652,7 @@ module.exports = function(XMPP, eventEmitter) {
12635 12652
 
12636 12653
 
12637 12654
 }).call(this,"/modules/xmpp/strophe.jingle.js")
12638
-},{"../../service/xmpp/XMPPEvents":138,"../RTC/RTCBrowserType":17,"./JingleSessionPC":30,"jitsi-meet-logger":49}],39:[function(require,module,exports){
12655
+},{"../../service/xmpp/XMPPEvents":142,"../RTC/RTCBrowserType":17,"./JingleSessionPC":30,"jitsi-meet-logger":49}],39:[function(require,module,exports){
12639 12656
 /* global Strophe */
12640 12657
 module.exports = function () {
12641 12658
 
@@ -12783,7 +12800,7 @@ module.exports = function (XMPP, eventEmitter) {
12783 12800
 };
12784 12801
 
12785 12802
 }).call(this,"/modules/xmpp/strophe.ping.js")
12786
-},{"../../service/xmpp/XMPPEvents":138,"jitsi-meet-logger":49}],41:[function(require,module,exports){
12803
+},{"../../service/xmpp/XMPPEvents":142,"jitsi-meet-logger":49}],41:[function(require,module,exports){
12787 12804
 (function (__filename){
12788 12805
 /* jshint -W117 */
12789 12806
 var logger = require("jitsi-meet-logger").getLogger(__filename);
@@ -13261,7 +13278,7 @@ XMPP.prototype.disconnect = function () {
13261 13278
 module.exports = XMPP;
13262 13279
 
13263 13280
 }).call(this,"/modules/xmpp/xmpp.js")
13264
-},{"../../JitsiConnectionErrors":5,"../../JitsiConnectionEvents":6,"../../service/RTC/RTCEvents":132,"../../service/xmpp/XMPPEvents":138,"../RTC/RTC":16,"./strophe.emuc":37,"./strophe.jingle":38,"./strophe.logger":39,"./strophe.ping":40,"./strophe.rayo":41,"./strophe.util":42,"events":45,"jitsi-meet-logger":49,"pako":51}],44:[function(require,module,exports){
13281
+},{"../../JitsiConnectionErrors":5,"../../JitsiConnectionEvents":6,"../../service/RTC/RTCEvents":136,"../../service/xmpp/XMPPEvents":142,"../RTC/RTC":16,"./strophe.emuc":37,"./strophe.jingle":38,"./strophe.logger":39,"./strophe.ping":40,"./strophe.rayo":41,"./strophe.util":42,"events":45,"jitsi-meet-logger":49,"pako":51}],44:[function(require,module,exports){
13265 13282
 (function (process){
13266 13283
 /*!
13267 13284
  * async
@@ -24326,10 +24343,18 @@ arguments[4][73][0].apply(exports,arguments)
24326 24343
 },{"./grammar":77,"dup":73}],80:[function(require,module,exports){
24327 24344
 arguments[4][74][0].apply(exports,arguments)
24328 24345
 },{"./grammar":77,"dup":74}],81:[function(require,module,exports){
24346
+arguments[4][71][0].apply(exports,arguments)
24347
+},{"dup":71}],82:[function(require,module,exports){
24348
+arguments[4][72][0].apply(exports,arguments)
24349
+},{"./parser":83,"./writer":84,"dup":72}],83:[function(require,module,exports){
24350
+arguments[4][73][0].apply(exports,arguments)
24351
+},{"./grammar":81,"dup":73}],84:[function(require,module,exports){
24352
+arguments[4][74][0].apply(exports,arguments)
24353
+},{"./grammar":81,"dup":74}],85:[function(require,module,exports){
24329 24354
 
24330 24355
 module.exports = require('./lib/');
24331 24356
 
24332
-},{"./lib/":82}],82:[function(require,module,exports){
24357
+},{"./lib/":86}],86:[function(require,module,exports){
24333 24358
 
24334 24359
 /**
24335 24360
  * Module dependencies.
@@ -24418,7 +24443,7 @@ exports.connect = lookup;
24418 24443
 exports.Manager = require('./manager');
24419 24444
 exports.Socket = require('./socket');
24420 24445
 
24421
-},{"./manager":83,"./socket":85,"./url":86,"debug":90,"socket.io-parser":126}],83:[function(require,module,exports){
24446
+},{"./manager":87,"./socket":89,"./url":90,"debug":94,"socket.io-parser":130}],87:[function(require,module,exports){
24422 24447
 
24423 24448
 /**
24424 24449
  * Module dependencies.
@@ -24923,7 +24948,7 @@ Manager.prototype.onreconnect = function(){
24923 24948
   this.emitAll('reconnect', attempt);
24924 24949
 };
24925 24950
 
24926
-},{"./on":84,"./socket":85,"./url":86,"backo2":87,"component-bind":88,"component-emitter":89,"debug":90,"engine.io-client":91,"indexof":122,"object-component":123,"socket.io-parser":126}],84:[function(require,module,exports){
24951
+},{"./on":88,"./socket":89,"./url":90,"backo2":91,"component-bind":92,"component-emitter":93,"debug":94,"engine.io-client":95,"indexof":126,"object-component":127,"socket.io-parser":130}],88:[function(require,module,exports){
24927 24952
 
24928 24953
 /**
24929 24954
  * Module exports.
@@ -24949,7 +24974,7 @@ function on(obj, ev, fn) {
24949 24974
   };
24950 24975
 }
24951 24976
 
24952
-},{}],85:[function(require,module,exports){
24977
+},{}],89:[function(require,module,exports){
24953 24978
 
24954 24979
 /**
24955 24980
  * Module dependencies.
@@ -25336,7 +25361,7 @@ Socket.prototype.disconnect = function(){
25336 25361
   return this;
25337 25362
 };
25338 25363
 
25339
-},{"./on":84,"component-bind":88,"component-emitter":89,"debug":90,"has-binary":120,"socket.io-parser":126,"to-array":130}],86:[function(require,module,exports){
25364
+},{"./on":88,"component-bind":92,"component-emitter":93,"debug":94,"has-binary":124,"socket.io-parser":130,"to-array":134}],90:[function(require,module,exports){
25340 25365
 (function (global){
25341 25366
 
25342 25367
 /**
@@ -25413,7 +25438,7 @@ function url(uri, loc){
25413 25438
 }
25414 25439
 
25415 25440
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
25416
-},{"debug":90,"parseuri":124}],87:[function(require,module,exports){
25441
+},{"debug":94,"parseuri":128}],91:[function(require,module,exports){
25417 25442
 
25418 25443
 /**
25419 25444
  * Expose `Backoff`.
@@ -25500,7 +25525,7 @@ Backoff.prototype.setJitter = function(jitter){
25500 25525
 };
25501 25526
 
25502 25527
 
25503
-},{}],88:[function(require,module,exports){
25528
+},{}],92:[function(require,module,exports){
25504 25529
 /**
25505 25530
  * Slice reference.
25506 25531
  */
@@ -25525,7 +25550,7 @@ module.exports = function(obj, fn){
25525 25550
   }
25526 25551
 };
25527 25552
 
25528
-},{}],89:[function(require,module,exports){
25553
+},{}],93:[function(require,module,exports){
25529 25554
 
25530 25555
 /**
25531 25556
  * Expose `Emitter`.
@@ -25691,7 +25716,7 @@ Emitter.prototype.hasListeners = function(event){
25691 25716
   return !! this.listeners(event).length;
25692 25717
 };
25693 25718
 
25694
-},{}],90:[function(require,module,exports){
25719
+},{}],94:[function(require,module,exports){
25695 25720
 
25696 25721
 /**
25697 25722
  * Expose `debug()` as the module.
@@ -25830,11 +25855,11 @@ try {
25830 25855
   if (window.localStorage) debug.enable(localStorage.debug);
25831 25856
 } catch(e){}
25832 25857
 
25833
-},{}],91:[function(require,module,exports){
25858
+},{}],95:[function(require,module,exports){
25834 25859
 
25835 25860
 module.exports =  require('./lib/');
25836 25861
 
25837
-},{"./lib/":92}],92:[function(require,module,exports){
25862
+},{"./lib/":96}],96:[function(require,module,exports){
25838 25863
 
25839 25864
 module.exports = require('./socket');
25840 25865
 
@@ -25846,7 +25871,7 @@ module.exports = require('./socket');
25846 25871
  */
25847 25872
 module.exports.parser = require('engine.io-parser');
25848 25873
 
25849
-},{"./socket":93,"engine.io-parser":105}],93:[function(require,module,exports){
25874
+},{"./socket":97,"engine.io-parser":109}],97:[function(require,module,exports){
25850 25875
 (function (global){
25851 25876
 /**
25852 25877
  * Module dependencies.
@@ -26555,7 +26580,7 @@ Socket.prototype.filterUpgrades = function (upgrades) {
26555 26580
 };
26556 26581
 
26557 26582
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
26558
-},{"./transport":94,"./transports":95,"component-emitter":89,"debug":102,"engine.io-parser":105,"indexof":122,"parsejson":116,"parseqs":117,"parseuri":118}],94:[function(require,module,exports){
26583
+},{"./transport":98,"./transports":99,"component-emitter":93,"debug":106,"engine.io-parser":109,"indexof":126,"parsejson":120,"parseqs":121,"parseuri":122}],98:[function(require,module,exports){
26559 26584
 /**
26560 26585
  * Module dependencies.
26561 26586
  */
@@ -26716,7 +26741,7 @@ Transport.prototype.onClose = function () {
26716 26741
   this.emit('close');
26717 26742
 };
26718 26743
 
26719
-},{"component-emitter":89,"engine.io-parser":105}],95:[function(require,module,exports){
26744
+},{"component-emitter":93,"engine.io-parser":109}],99:[function(require,module,exports){
26720 26745
 (function (global){
26721 26746
 /**
26722 26747
  * Module dependencies
@@ -26773,7 +26798,7 @@ function polling(opts){
26773 26798
 }
26774 26799
 
26775 26800
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
26776
-},{"./polling-jsonp":96,"./polling-xhr":97,"./websocket":99,"xmlhttprequest":100}],96:[function(require,module,exports){
26801
+},{"./polling-jsonp":100,"./polling-xhr":101,"./websocket":103,"xmlhttprequest":104}],100:[function(require,module,exports){
26777 26802
 (function (global){
26778 26803
 
26779 26804
 /**
@@ -27010,7 +27035,7 @@ JSONPPolling.prototype.doWrite = function (data, fn) {
27010 27035
 };
27011 27036
 
27012 27037
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
27013
-},{"./polling":98,"component-inherit":101}],97:[function(require,module,exports){
27038
+},{"./polling":102,"component-inherit":105}],101:[function(require,module,exports){
27014 27039
 (function (global){
27015 27040
 /**
27016 27041
  * Module requirements.
@@ -27398,7 +27423,7 @@ function unloadHandler() {
27398 27423
 }
27399 27424
 
27400 27425
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
27401
-},{"./polling":98,"component-emitter":89,"component-inherit":101,"debug":102,"xmlhttprequest":100}],98:[function(require,module,exports){
27426
+},{"./polling":102,"component-emitter":93,"component-inherit":105,"debug":106,"xmlhttprequest":104}],102:[function(require,module,exports){
27402 27427
 /**
27403 27428
  * Module dependencies.
27404 27429
  */
@@ -27645,7 +27670,7 @@ Polling.prototype.uri = function(){
27645 27670
   return schema + '://' + this.hostname + port + this.path + query;
27646 27671
 };
27647 27672
 
27648
-},{"../transport":94,"component-inherit":101,"debug":102,"engine.io-parser":105,"parseqs":117,"xmlhttprequest":100}],99:[function(require,module,exports){
27673
+},{"../transport":98,"component-inherit":105,"debug":106,"engine.io-parser":109,"parseqs":121,"xmlhttprequest":104}],103:[function(require,module,exports){
27649 27674
 /**
27650 27675
  * Module dependencies.
27651 27676
  */
@@ -27885,7 +27910,7 @@ WS.prototype.check = function(){
27885 27910
   return !!WebSocket && !('__initialize' in WebSocket && this.name === WS.prototype.name);
27886 27911
 };
27887 27912
 
27888
-},{"../transport":94,"component-inherit":101,"debug":102,"engine.io-parser":105,"parseqs":117,"ws":119}],100:[function(require,module,exports){
27913
+},{"../transport":98,"component-inherit":105,"debug":106,"engine.io-parser":109,"parseqs":121,"ws":123}],104:[function(require,module,exports){
27889 27914
 // browser shim for xmlhttprequest module
27890 27915
 var hasCORS = require('has-cors');
27891 27916
 
@@ -27923,7 +27948,7 @@ module.exports = function(opts) {
27923 27948
   }
27924 27949
 }
27925 27950
 
27926
-},{"has-cors":114}],101:[function(require,module,exports){
27951
+},{"has-cors":118}],105:[function(require,module,exports){
27927 27952
 
27928 27953
 module.exports = function(a, b){
27929 27954
   var fn = function(){};
@@ -27931,7 +27956,7 @@ module.exports = function(a, b){
27931 27956
   a.prototype = new fn;
27932 27957
   a.prototype.constructor = a;
27933 27958
 };
27934
-},{}],102:[function(require,module,exports){
27959
+},{}],106:[function(require,module,exports){
27935 27960
 
27936 27961
 /**
27937 27962
  * This is the web browser implementation of `debug()`.
@@ -28080,7 +28105,7 @@ function load() {
28080 28105
 
28081 28106
 exports.enable(load());
28082 28107
 
28083
-},{"./debug":103}],103:[function(require,module,exports){
28108
+},{"./debug":107}],107:[function(require,module,exports){
28084 28109
 
28085 28110
 /**
28086 28111
  * This is the common logic for both the Node.js and web browser
@@ -28279,7 +28304,7 @@ function coerce(val) {
28279 28304
   return val;
28280 28305
 }
28281 28306
 
28282
-},{"ms":104}],104:[function(require,module,exports){
28307
+},{"ms":108}],108:[function(require,module,exports){
28283 28308
 /**
28284 28309
  * Helpers.
28285 28310
  */
@@ -28392,7 +28417,7 @@ function plural(ms, n, name) {
28392 28417
   return Math.ceil(ms / n) + ' ' + name + 's';
28393 28418
 }
28394 28419
 
28395
-},{}],105:[function(require,module,exports){
28420
+},{}],109:[function(require,module,exports){
28396 28421
 (function (global){
28397 28422
 /**
28398 28423
  * Module dependencies.
@@ -28990,7 +29015,7 @@ exports.decodePayloadAsBinary = function (data, binaryType, callback) {
28990 29015
 };
28991 29016
 
28992 29017
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
28993
-},{"./keys":106,"after":107,"arraybuffer.slice":108,"base64-arraybuffer":109,"blob":110,"has-binary":111,"utf8":113}],106:[function(require,module,exports){
29018
+},{"./keys":110,"after":111,"arraybuffer.slice":112,"base64-arraybuffer":113,"blob":114,"has-binary":115,"utf8":117}],110:[function(require,module,exports){
28994 29019
 
28995 29020
 /**
28996 29021
  * Gets the keys for an object.
@@ -29011,7 +29036,7 @@ module.exports = Object.keys || function keys (obj){
29011 29036
   return arr;
29012 29037
 };
29013 29038
 
29014
-},{}],107:[function(require,module,exports){
29039
+},{}],111:[function(require,module,exports){
29015 29040
 module.exports = after
29016 29041
 
29017 29042
 function after(count, callback, err_cb) {
@@ -29041,7 +29066,7 @@ function after(count, callback, err_cb) {
29041 29066
 
29042 29067
 function noop() {}
29043 29068
 
29044
-},{}],108:[function(require,module,exports){
29069
+},{}],112:[function(require,module,exports){
29045 29070
 /**
29046 29071
  * An abstraction for slicing an arraybuffer even when
29047 29072
  * ArrayBuffer.prototype.slice is not supported
@@ -29072,7 +29097,7 @@ module.exports = function(arraybuffer, start, end) {
29072 29097
   return result.buffer;
29073 29098
 };
29074 29099
 
29075
-},{}],109:[function(require,module,exports){
29100
+},{}],113:[function(require,module,exports){
29076 29101
 /*
29077 29102
  * base64-arraybuffer
29078 29103
  * https://github.com/niklasvh/base64-arraybuffer
@@ -29133,7 +29158,7 @@ module.exports = function(arraybuffer, start, end) {
29133 29158
   };
29134 29159
 })("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/");
29135 29160
 
29136
-},{}],110:[function(require,module,exports){
29161
+},{}],114:[function(require,module,exports){
29137 29162
 (function (global){
29138 29163
 /**
29139 29164
  * Create a blob builder even when vendor prefixes exist
@@ -29186,7 +29211,7 @@ module.exports = (function() {
29186 29211
 })();
29187 29212
 
29188 29213
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29189
-},{}],111:[function(require,module,exports){
29214
+},{}],115:[function(require,module,exports){
29190 29215
 (function (global){
29191 29216
 
29192 29217
 /*
@@ -29248,12 +29273,12 @@ function hasBinary(data) {
29248 29273
 }
29249 29274
 
29250 29275
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29251
-},{"isarray":112}],112:[function(require,module,exports){
29276
+},{"isarray":116}],116:[function(require,module,exports){
29252 29277
 module.exports = Array.isArray || function (arr) {
29253 29278
   return Object.prototype.toString.call(arr) == '[object Array]';
29254 29279
 };
29255 29280
 
29256
-},{}],113:[function(require,module,exports){
29281
+},{}],117:[function(require,module,exports){
29257 29282
 (function (global){
29258 29283
 /*! http://mths.be/utf8js v2.0.0 by @mathias */
29259 29284
 ;(function(root) {
@@ -29496,7 +29521,7 @@ module.exports = Array.isArray || function (arr) {
29496 29521
 }(this));
29497 29522
 
29498 29523
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29499
-},{}],114:[function(require,module,exports){
29524
+},{}],118:[function(require,module,exports){
29500 29525
 
29501 29526
 /**
29502 29527
  * Module dependencies.
@@ -29521,7 +29546,7 @@ try {
29521 29546
   module.exports = false;
29522 29547
 }
29523 29548
 
29524
-},{"global":115}],115:[function(require,module,exports){
29549
+},{"global":119}],119:[function(require,module,exports){
29525 29550
 
29526 29551
 /**
29527 29552
  * Returns `this`. Execute this without a "context" (i.e. without it being
@@ -29531,7 +29556,7 @@ try {
29531 29556
 
29532 29557
 module.exports = (function () { return this; })();
29533 29558
 
29534
-},{}],116:[function(require,module,exports){
29559
+},{}],120:[function(require,module,exports){
29535 29560
 (function (global){
29536 29561
 /**
29537 29562
  * JSON parse.
@@ -29566,7 +29591,7 @@ module.exports = function parsejson(data) {
29566 29591
   }
29567 29592
 };
29568 29593
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29569
-},{}],117:[function(require,module,exports){
29594
+},{}],121:[function(require,module,exports){
29570 29595
 /**
29571 29596
  * Compiles a querystring
29572 29597
  * Returns string representation of the object
@@ -29605,7 +29630,7 @@ exports.decode = function(qs){
29605 29630
   return qry;
29606 29631
 };
29607 29632
 
29608
-},{}],118:[function(require,module,exports){
29633
+},{}],122:[function(require,module,exports){
29609 29634
 /**
29610 29635
  * Parses an URI
29611 29636
  *
@@ -29646,7 +29671,7 @@ module.exports = function parseuri(str) {
29646 29671
     return uri;
29647 29672
 };
29648 29673
 
29649
-},{}],119:[function(require,module,exports){
29674
+},{}],123:[function(require,module,exports){
29650 29675
 
29651 29676
 /**
29652 29677
  * Module dependencies.
@@ -29691,7 +29716,7 @@ function ws(uri, protocols, opts) {
29691 29716
 
29692 29717
 if (WebSocket) ws.prototype = WebSocket.prototype;
29693 29718
 
29694
-},{}],120:[function(require,module,exports){
29719
+},{}],124:[function(require,module,exports){
29695 29720
 (function (global){
29696 29721
 
29697 29722
 /*
@@ -29753,9 +29778,9 @@ function hasBinary(data) {
29753 29778
 }
29754 29779
 
29755 29780
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
29756
-},{"isarray":121}],121:[function(require,module,exports){
29757
-arguments[4][112][0].apply(exports,arguments)
29758
-},{"dup":112}],122:[function(require,module,exports){
29781
+},{"isarray":125}],125:[function(require,module,exports){
29782
+arguments[4][116][0].apply(exports,arguments)
29783
+},{"dup":116}],126:[function(require,module,exports){
29759 29784
 
29760 29785
 var indexOf = [].indexOf;
29761 29786
 
@@ -29766,7 +29791,7 @@ module.exports = function(arr, obj){
29766 29791
   }
29767 29792
   return -1;
29768 29793
 };
29769
-},{}],123:[function(require,module,exports){
29794
+},{}],127:[function(require,module,exports){
29770 29795
 
29771 29796
 /**
29772 29797
  * HOP ref.
@@ -29851,7 +29876,7 @@ exports.length = function(obj){
29851 29876
 exports.isEmpty = function(obj){
29852 29877
   return 0 == exports.length(obj);
29853 29878
 };
29854
-},{}],124:[function(require,module,exports){
29879
+},{}],128:[function(require,module,exports){
29855 29880
 /**
29856 29881
  * Parses an URI
29857 29882
  *
@@ -29878,7 +29903,7 @@ module.exports = function parseuri(str) {
29878 29903
   return uri;
29879 29904
 };
29880 29905
 
29881
-},{}],125:[function(require,module,exports){
29906
+},{}],129:[function(require,module,exports){
29882 29907
 (function (global){
29883 29908
 /*global Blob,File*/
29884 29909
 
@@ -30023,7 +30048,7 @@ exports.removeBlobs = function(data, callback) {
30023 30048
 };
30024 30049
 
30025 30050
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
30026
-},{"./is-buffer":127,"isarray":128}],126:[function(require,module,exports){
30051
+},{"./is-buffer":131,"isarray":132}],130:[function(require,module,exports){
30027 30052
 
30028 30053
 /**
30029 30054
  * Module dependencies.
@@ -30425,7 +30450,7 @@ function error(data){
30425 30450
   };
30426 30451
 }
30427 30452
 
30428
-},{"./binary":125,"./is-buffer":127,"component-emitter":89,"debug":90,"isarray":128,"json3":129}],127:[function(require,module,exports){
30453
+},{"./binary":129,"./is-buffer":131,"component-emitter":93,"debug":94,"isarray":132,"json3":133}],131:[function(require,module,exports){
30429 30454
 (function (global){
30430 30455
 
30431 30456
 module.exports = isBuf;
@@ -30442,9 +30467,9 @@ function isBuf(obj) {
30442 30467
 }
30443 30468
 
30444 30469
 }).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
30445
-},{}],128:[function(require,module,exports){
30446
-arguments[4][112][0].apply(exports,arguments)
30447
-},{"dup":112}],129:[function(require,module,exports){
30470
+},{}],132:[function(require,module,exports){
30471
+arguments[4][116][0].apply(exports,arguments)
30472
+},{"dup":116}],133:[function(require,module,exports){
30448 30473
 /*! JSON v3.2.6 | http://bestiejs.github.io/json3 | Copyright 2012-2013, Kit Cambridge | http://kit.mit-license.org */
30449 30474
 ;(function (window) {
30450 30475
   // Convenience aliases.
@@ -31307,7 +31332,7 @@ arguments[4][112][0].apply(exports,arguments)
31307 31332
   }
31308 31333
 }(this));
31309 31334
 
31310
-},{}],130:[function(require,module,exports){
31335
+},{}],134:[function(require,module,exports){
31311 31336
 module.exports = toArray
31312 31337
 
31313 31338
 function toArray(list, index) {
@@ -31322,14 +31347,14 @@ function toArray(list, index) {
31322 31347
     return array
31323 31348
 }
31324 31349
 
31325
-},{}],131:[function(require,module,exports){
31350
+},{}],135:[function(require,module,exports){
31326 31351
 var MediaStreamType = {
31327 31352
     VIDEO_TYPE: "Video",
31328 31353
 
31329 31354
     AUDIO_TYPE: "Audio"
31330 31355
 };
31331 31356
 module.exports = MediaStreamType;
31332
-},{}],132:[function(require,module,exports){
31357
+},{}],136:[function(require,module,exports){
31333 31358
 var RTCEvents = {
31334 31359
     RTC_READY: "rtc.ready",
31335 31360
     DATA_CHANNEL_OPEN: "rtc.data_channel_open",
@@ -31341,7 +31366,7 @@ var RTCEvents = {
31341 31366
 };
31342 31367
 
31343 31368
 module.exports = RTCEvents;
31344
-},{}],133:[function(require,module,exports){
31369
+},{}],137:[function(require,module,exports){
31345 31370
 var Resolutions = {
31346 31371
     "1080": {
31347 31372
         width: 1920,
@@ -31395,7 +31420,7 @@ var Resolutions = {
31395 31420
     }
31396 31421
 };
31397 31422
 module.exports = Resolutions;
31398
-},{}],134:[function(require,module,exports){
31423
+},{}],138:[function(require,module,exports){
31399 31424
 var AuthenticationEvents = {
31400 31425
     /**
31401 31426
      * Event callback arguments:
@@ -31409,7 +31434,7 @@ var AuthenticationEvents = {
31409 31434
 };
31410 31435
 module.exports = AuthenticationEvents;
31411 31436
 
31412
-},{}],135:[function(require,module,exports){
31437
+},{}],139:[function(require,module,exports){
31413 31438
 var DesktopSharingEventTypes = {
31414 31439
     /**
31415 31440
      * An event which indicates that the jidesha extension for Firefox is
@@ -31420,7 +31445,7 @@ var DesktopSharingEventTypes = {
31420 31445
 
31421 31446
 module.exports = DesktopSharingEventTypes;
31422 31447
 
31423
-},{}],136:[function(require,module,exports){
31448
+},{}],140:[function(require,module,exports){
31424 31449
 module.exports = {
31425 31450
     /**
31426 31451
      * An event carrying connection statistics.
@@ -31436,12 +31461,12 @@ module.exports = {
31436 31461
     STOP: "statistics.stop"
31437 31462
 };
31438 31463
 
31439
-},{}],137:[function(require,module,exports){
31464
+},{}],141:[function(require,module,exports){
31440 31465
 var Constants = {
31441 31466
     LOCAL_JID: 'local'
31442 31467
 };
31443 31468
 module.exports = Constants;
31444
-},{}],138:[function(require,module,exports){
31469
+},{}],142:[function(require,module,exports){
31445 31470
 var XMPPEvents = {
31446 31471
     // Designates an event indicating that the connection to the XMPP server
31447 31472
     // failed.

+ 1
- 1
modules/UI/side_pannels/chat/Commands.js 查看文件

@@ -32,7 +32,7 @@ function getCommand(message) {
32 32
  */
33 33
 function processTopic(commandArguments, emitter) {
34 34
     var topic = UIUtil.escapeHtml(commandArguments);
35
-    emitter.emit(UIEvents.TOPIC_CHANGED, topic);
35
+    emitter.emit(UIEvents.SUBJECT_CHANGED, topic);
36 36
 }
37 37
 
38 38
 /**

+ 2
- 1
service/UI/UIEvents.js 查看文件

@@ -40,5 +40,6 @@ export default {
40 40
     HANGUP: "UI.hangup",
41 41
     LOGOUT: "UI.logout",
42 42
     RECORDING_TOGGLE: "UI.recording_toggle",
43
-    TOPIC_CHANGED: "UI.topic_changed"
43
+    SIP_DIAL: "UI.sip_dial",
44
+    SUBEJCT_CHANGED: "UI.subject_changed"
44 45
 };

正在加载...
取消
保存