From eee58b294538dc5d7ae241150076fd04dcbcf6b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Tue, 10 Dec 2024 15:57:11 +0100 Subject: [PATCH] fix(whiteboard) fix disabling button --- react/features/whiteboard/functions.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/features/whiteboard/functions.ts b/react/features/whiteboard/functions.ts index 16d34845ce..97dcf3bb52 100644 --- a/react/features/whiteboard/functions.ts +++ b/react/features/whiteboard/functions.ts @@ -52,7 +52,7 @@ const hasCollabDetails = (state: IReduxState): boolean => Boolean( * @returns {boolean} */ export const isWhiteboardEnabled = (state: IReduxState): boolean => - (getWhiteboardConfig(state).enabled || hasCollabDetails(state)) + (getWhiteboardConfig(state).enabled ?? hasCollabDetails(state)) && getWhiteboardConfig(state).collabServerBaseUrl && getCurrentConference(state)?.getMetadataHandler() ?.isSupported();