Fix: meeting query missing fields
This commit is contained in:
parent
57fabde52e
commit
e343eac51d
@ -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 {
|
||||
|
@ -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;
|
||||
|
||||
|
@ -86,13 +86,12 @@ const MEETING_SUBSCRIPTION = gql`
|
||||
updatedAt
|
||||
}
|
||||
componentsFlags {
|
||||
audioTranscriptionCaption
|
||||
hasCaption
|
||||
hasBreakoutRoom
|
||||
hasExternalVideo
|
||||
hasPoll
|
||||
hasScreenshare
|
||||
hasTimer
|
||||
typedCaption
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user