Fix: meeting query missing fields

This commit is contained in:
Tainan Felipe 2024-01-12 18:07:00 -03:00
parent 57fabde52e
commit e343eac51d
3 changed files with 3 additions and 6 deletions

View File

@ -85,13 +85,12 @@ export interface ExternalVideo {
}
export interface ComponentsFlags {
audioTranscriptionCaption: string[];
hasCaption: boolean;
hasBreakoutRoom: boolean;
hasExternalVideo: boolean;
hasPoll: boolean;
hasScreenshare: boolean;
hasTimer: boolean;
typedCaption: string[];
}
export interface Meeting {

View File

@ -269,8 +269,7 @@ const AudioCaptionsButtonContainer: React.FC = () => {
const { componentsFlags } = currentMeeting;
const hasCaptions = (componentsFlags?.audioTranscriptionCaption?.length ?? 0) > 0
|| (componentsFlags?.typedCaption?.length ?? 0) > 0;
const hasCaptions = componentsFlags?.hasCaptions;
if (!hasCaptions) return null;

View File

@ -86,13 +86,12 @@ const MEETING_SUBSCRIPTION = gql`
updatedAt
}
componentsFlags {
audioTranscriptionCaption
hasCaption
hasBreakoutRoom
hasExternalVideo
hasPoll
hasScreenshare
hasTimer
typedCaption
}
}
}