Przeglądaj źródła

Fixes attaching chat room listeners for statistics.

Need to attach the listeners after statistics is created.
dev1
damencho 9 lat temu
rodzic
commit
e65bfb0d02
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3
    3
      JitsiConference.js

+ 3
- 3
JitsiConference.js Wyświetl plik

@@ -83,8 +83,6 @@ JitsiConference.prototype._init = function (options) {
83 83
     this.room = this.xmpp.createRoom(this.options.name, this.options.config,
84 84
         this.settings, (this.retries < 4 ? 3 : null));
85 85
 
86
-    this.eventManager.setupChatRoomListeners();
87
-
88 86
     //restore previous presence options
89 87
     if(options.roomState) {
90 88
         this.room.loadState(options.roomState);
@@ -96,7 +94,6 @@ JitsiConference.prototype._init = function (options) {
96 94
         this.eventManager.setupRTCListeners();
97 95
     }
98 96
 
99
-
100 97
     if(!this.statistics) {
101 98
         this.statistics = new Statistics(this.xmpp, {
102 99
             callStatsID: this.options.config.callStatsID,
@@ -106,6 +103,9 @@ JitsiConference.prototype._init = function (options) {
106 103
             roomName: this.options.name
107 104
         });
108 105
     }
106
+
107
+    this.eventManager.setupChatRoomListeners();
108
+
109 109
     // Always add listeners because on reload we are executing leave and the
110 110
     // listeners are removed from statistics module.
111 111
     this.eventManager.setupStatisticsListeners();

Ładowanie…
Anuluj
Zapisz