bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/screenreader-alert/service.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

21 lines
318 B
TypeScript

import { uniqueId } from '/imports/utils/string-utils';
import Queue from './queue';
export const addAlert = (text: string) => {
const alert = {
id: uniqueId('alert-'),
text,
};
Queue.push(alert);
};
export const shiftAlert = () => {
Queue.shift();
};
export default {
addAlert,
shiftAlert,
};