diff --git a/src/utils/signaling.js b/src/utils/signaling.js index 31526c985d8..af30a74fe1a 100644 --- a/src/utils/signaling.js +++ b/src/utils/signaling.js @@ -3,6 +3,7 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ +import { getCurrentUser } from '@nextcloud/auth' import axios, { isCancel } from '@nextcloud/axios' import { showError, @@ -1123,12 +1124,22 @@ Signaling.Standalone.prototype.helloResponseReceived = function(data) { || (!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.'), - { - timeout: TOAST_PERMANENT_TIMEOUT, - }, - ) + if (getCurrentUser()?.isAdmin) { + showError( + t('spreed', 'The configured signaling server needs to be updated to be compatible with this version of Talk'), + { + timeout: TOAST_PERMANENT_TIMEOUT, + }, + ) + } else { + showError( + t('spreed', 'The server is misconfigured. Please contact your administration.'), + { + timeout: TOAST_PERMANENT_TIMEOUT, + }, + ) + } + console.error('The configured signaling server needs to be updated to be compatible with this version of Talk. Please contact your administration.') }