fix(settings): trying to access getMetadata() of undefined

This commit is contained in:
Calin-Teodor
2025-05-27 15:06:29 +03:00
committed by Calinteodor
parent 65e3886d43
commit deb0e36f84

View File

@@ -145,7 +145,8 @@ export function getModeratorTabProps(stateful: IStateful) {
const followMeActive = isFollowMeActive(state);
const followMeRecorderActive = isFollowMeRecorderActive(state);
const showModeratorSettings = shouldShowModeratorSettings(state);
const disableChatWithPermissions = !conference?.getMetadataHandler().getMetadata().allownersEnabled;
const conferenceMetadata = conference?.getMetadataHandler()?.getMetadata();
const disableChatWithPermissions = !conferenceMetadata?.allownersEnabled;
const isAudioModerationEnabled = isEnabledFromState(MEDIA_TYPE.AUDIO, state);
const isVideoModerationEnabled = isEnabledFromState(MEDIA_TYPE.VIDEO, state);