fix(whiteboard) fix disabling button

This commit is contained in:
Saúl Ibarra Corretgé
2024-12-10 15:57:11 +01:00
committed by Saúl Ibarra Corretgé
parent c7cfb5218d
commit eee58b2945

View File

@@ -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();