ソースを参照

Fixes attaching chat room listeners for statistics.

Need to attach the listeners after statistics is created.
dev1
damencho 9年前
コミット
e65bfb0d02
1個のファイルの変更3行の追加3行の削除
  1. 3
    3
      JitsiConference.js

+ 3
- 3
JitsiConference.js ファイルの表示

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

読み込み中…
キャンセル
保存