Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(remote-control): do not assume failed query is missing support

Leonard Kimb86df7a8e39b
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.js
index b13375515a..9063441f99 100644
--- a/modules/UI/videolayout/VideoLayout.js
+++ b/modules/UI/videolayout/VideoLayout.js
@@ -893,8 +893,10 @@ const VideoLayout = {
* will be set.
*/
_setRemoteControlProperties(user, remoteVideo) {
- APP.remoteControl.checkUserRemoteControlSupport(user).then(result =>
- remoteVideo.setRemoteControlSupport(result));
+ APP.remoteControl.checkUserRemoteControlSupport(user)
+ .then(result => remoteVideo.setRemoteControlSupport(result))
+ .catch(error =>
+ logger.warn('could not get remote control properties', error));
},
/**
diff --git a/modules/remotecontrol/RemoteControl.js b/modules/remotecontrol/RemoteControl.js
index c504e53670..b139f26e09 100644
--- a/modules/remotecontrol/RemoteControl.js
+++ b/modules/remotecontrol/RemoteControl.js
@@ -91,9 +91,8 @@ class RemoteControl extends EventEmitter {
* the user supports remote control and with false if not.
*/
checkUserRemoteControlSupport(user: Object) {
- return user.getFeatures().then(
- features => features.has(DISCO_REMOTE_CONTROL_FEATURE),
- () => false);
+ return user.getFeatures()
+ .then(features => features.has(DISCO_REMOTE_CONTROL_FEATURE));
}
}