bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/screenreader-alert/queries.ts
João Victor Nunes 71dbe06dfd
fix: restore screen reader alerts for unread chat messages (#19713)
* fix: restore screen reader alerts for unread chat messages
* fix: move screen reader alert adapter up the component tree
2024-04-05 18:30:58 -04:00

33 lines
510 B
TypeScript

import { gql } from '@apollo/client';
export interface UnreadChatsSubscriptionResponse {
chat: Array<{
chatId: string;
totalUnread: number;
participant?: {
name: string;
};
}>;
}
export const UNREAD_CHATS_SUBSCRIPTION = gql`
subscription {
chat(
where: {
totalUnread: { _gt: 0 },
visible: { _eq: true }
}
) {
chatId
totalUnread
participant {
name
}
}
}
`;
export default {
UNREAD_CHATS_SUBSCRIPTION,
};