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 { 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 {

View File

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

View File

@ -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
} }
} }
} }