From 0f261c2b2d4026d45e7230f0dbcfb82edaddf799 Mon Sep 17 00:00:00 2001 From: "Grigorii K. Shartsev" Date: Wed, 21 Aug 2024 21:42:37 +0200 Subject: [PATCH] fix(signaling): check only required features on Frontend Signed-off-by: Grigorii K. Shartsev --- src/utils/signaling.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/utils/signaling.js b/src/utils/signaling.js index 8ce4514d9ff..b99062bdb8b 100644 --- a/src/utils/signaling.js +++ b/src/utils/signaling.js @@ -17,6 +17,7 @@ import { import CancelableRequest from './cancelableRequest.js' import { PARTICIPANT } from '../constants.js' +import { hasTalkFeature } from '../services/CapabilitiesManager.ts' import { EventBus } from '../services/EventBus.js' import { rejoinConversation } from '../services/participantsService.js' import { pullSignalingMessages } from '../services/signalingService.js' @@ -1082,10 +1083,12 @@ Signaling.Standalone.prototype.helloResponseReceived = function(data) { } if (!this.settings.helloAuthParams.internal - && (!this.hasFeature('audio-video-permissions') - || !this.hasFeature('federation') - || !this.hasFeature('incall-all') - || !this.hasFeature('switchto'))) { + && ((!this.hasFeature('audio-video-permissions') && hasTalkFeature('local', 'conversation-permissions')) // Talk v13 + || !this.hasFeature('incall-all') // Talk v15 + || (!this.hasFeature('switchto') && hasTalkFeature('local', 'breakout-rooms-v1')) // Talk v16 + || (!this.hasFeature('federation') && hasTalkFeature('local', 'federation-v2')) // Talk v20 + ) + ) { showError( t('spreed', 'The configured signaling server needs to be updated to be compatible with this version of Talk. Please contact your administration.'), {