Fix: meeting query missing fields
This commit is contained in:
parent
57fabde52e
commit
e343eac51d
@ -85,13 +85,12 @@ export interface ExternalVideo {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface ComponentsFlags {
|
export interface ComponentsFlags {
|
||||||
audioTranscriptionCaption: string[];
|
hasCaption: boolean;
|
||||||
hasBreakoutRoom: boolean;
|
hasBreakoutRoom: boolean;
|
||||||
hasExternalVideo: boolean;
|
hasExternalVideo: boolean;
|
||||||
hasPoll: boolean;
|
hasPoll: boolean;
|
||||||
hasScreenshare: boolean;
|
hasScreenshare: boolean;
|
||||||
hasTimer: boolean;
|
hasTimer: boolean;
|
||||||
typedCaption: string[];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface Meeting {
|
export interface Meeting {
|
||||||
|
@ -269,8 +269,7 @@ const AudioCaptionsButtonContainer: React.FC = () => {
|
|||||||
|
|
||||||
const { componentsFlags } = currentMeeting;
|
const { componentsFlags } = currentMeeting;
|
||||||
|
|
||||||
const hasCaptions = (componentsFlags?.audioTranscriptionCaption?.length ?? 0) > 0
|
const hasCaptions = componentsFlags?.hasCaptions;
|
||||||
|| (componentsFlags?.typedCaption?.length ?? 0) > 0;
|
|
||||||
|
|
||||||
if (!hasCaptions) return null;
|
if (!hasCaptions) return null;
|
||||||
|
|
||||||
|
@ -86,13 +86,12 @@ const MEETING_SUBSCRIPTION = gql`
|
|||||||
updatedAt
|
updatedAt
|
||||||
}
|
}
|
||||||
componentsFlags {
|
componentsFlags {
|
||||||
audioTranscriptionCaption
|
hasCaption
|
||||||
hasBreakoutRoom
|
hasBreakoutRoom
|
||||||
hasExternalVideo
|
hasExternalVideo
|
||||||
hasPoll
|
hasPoll
|
||||||
hasScreenshare
|
hasScreenshare
|
||||||
hasTimer
|
hasTimer
|
||||||
typedCaption
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user