refactor: Don't calculate remote connection quality.

This commit is contained in:
Boris Grozev 2016-10-27 15:49:29 -05:00
parent 09016c2182
commit c98ffdc817
1 changed files with 6 additions and 5 deletions

View File

@ -1304,8 +1304,8 @@ export default {
});
room.on(ConnectionQualityEvents.REMOTE_STATS_UPDATED,
(id, percent, stats) => {
APP.UI.updateRemoteStats(id, percent, stats);
(id, stats) => {
APP.UI.updateRemoteStats(id, stats.connectionQuality, stats);
});
room.addCommandListener(this.commands.defaults.ETHERPAD, ({value}) => {
@ -1317,9 +1317,10 @@ export default {
APP.UI.setUserEmail(from, data.value);
});
room.addCommandListener(this.commands.defaults.AVATAR_URL,
(data, from) => {
APP.UI.setUserAvatarUrl(from, data.value);
room.addCommandListener(
this.commands.defaults.AVATAR_URL,
(data, from) => {
APP.UI.setUserAvatarUrl(from, data.value);
});
room.addCommandListener(this.commands.defaults.AVATAR_ID,