Ver código fonte

refactor: Don't calculate remote connection quality.

j8
Boris Grozev 8 anos atrás
pai
commit
c98ffdc817
1 arquivos alterados com 6 adições e 5 exclusões
  1. 6
    5
      conference.js

+ 6
- 5
conference.js Ver arquivo

@@ -1304,8 +1304,8 @@ export default {
1304 1304
         });
1305 1305
 
1306 1306
         room.on(ConnectionQualityEvents.REMOTE_STATS_UPDATED,
1307
-            (id, percent, stats) => {
1308
-                APP.UI.updateRemoteStats(id, percent, stats);
1307
+            (id, stats) => {
1308
+                APP.UI.updateRemoteStats(id, stats.connectionQuality, stats);
1309 1309
         });
1310 1310
 
1311 1311
         room.addCommandListener(this.commands.defaults.ETHERPAD, ({value}) => {
@@ -1317,9 +1317,10 @@ export default {
1317 1317
             APP.UI.setUserEmail(from, data.value);
1318 1318
         });
1319 1319
 
1320
-        room.addCommandListener(this.commands.defaults.AVATAR_URL,
1321
-        (data, from) => {
1322
-            APP.UI.setUserAvatarUrl(from, data.value);
1320
+        room.addCommandListener(
1321
+            this.commands.defaults.AVATAR_URL,
1322
+            (data, from) => {
1323
+                APP.UI.setUserAvatarUrl(from, data.value);
1323 1324
         });
1324 1325
 
1325 1326
         room.addCommandListener(this.commands.defaults.AVATAR_ID,

Carregando…
Cancelar
Salvar