diff --git a/bbb-graphql-server/bbb_schema.sql b/bbb-graphql-server/bbb_schema.sql index 86d2b0b5f8..a8c5422e34 100644 --- a/bbb-graphql-server/bbb_schema.sql +++ b/bbb-graphql-server/bbb_schema.sql @@ -1627,16 +1627,15 @@ select "meeting"."meetingId", from "v_externalVideo" where "v_externalVideo"."meetingId" = "meeting"."meetingId" ) as "hasExternalVideo", - ( - select array_agg(distinct "speechLocale") - from "user" - where "user"."meetingId" = "meeting"."meetingId" + exists ( + select 1 + from "v_user" + where "v_user"."meetingId" = "meeting"."meetingId" and NULLIF("speechLocale",'') is not null - ) as "audioTranscriptionCaption", - ( - select array_agg(distinct "name") + ) or exists ( + select 1 from "sharedNotes" where "sharedNotes"."meetingId" = "meeting"."meetingId" and "model" = 'captions' - ) as "typedCaption" + ) as "hasCaption" from "meeting"; diff --git a/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_meeting_componentsFlags.yaml b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_meeting_componentsFlags.yaml index 84b20099ad..843a6412eb 100644 --- a/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_meeting_componentsFlags.yaml +++ b/bbb-graphql-server/metadata/databases/BigBlueButton/tables/public_v_meeting_componentsFlags.yaml @@ -10,13 +10,12 @@ select_permissions: - role: bbb_client permission: columns: - - audioTranscriptionCaption - hasBreakoutRoom - hasExternalVideo - hasPoll - hasScreenshare - hasTimer - - typedCaption + - hasCaption filter: meetingId: _eq: X-Hasura-MeetingId