diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-11-15 16:29:45 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-11-15 16:35:07 +0100 |
commit | 2004490b37c67ec2c0aedce413cb1d1ec9c76dae (patch) | |
tree | e41aa32ab755ca426992c43c23fa93df92592533 | |
parent | a3329013909bcc1d0798225b046c6b431ede604d (diff) |
Fix slow update of "Join/leave call" button
The button is updated when the model changes, but the model was not
being synced when the user joined or left a call, so it only changed
when it was synced for any other reason.
Fixes #473
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
-rw-r--r-- | js/webrtc.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/webrtc.js b/js/webrtc.js index 4037f7ade..27e7cc6bd 100644 --- a/js/webrtc.js +++ b/js/webrtc.js @@ -661,10 +661,16 @@ var spreedPeerConnectionTable = []; }); OCA.SpreedMe.webrtc.on('joinedCall', function() { + OCA.SpreedMe.app.syncRooms(); + $('#app-content').removeClass('icon-loading'); $('.videoView').removeClass('hidden'); }); + OCA.SpreedMe.webrtc.on('leftCall', function() { + OCA.SpreedMe.app.syncRooms(); + }); + OCA.SpreedMe.webrtc.on('channelOpen', function(channel) { console.log('%s datachannel is open', channel.label); }); |