bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/notes/hooks/useHasUnreadNotes.ts
Ramón Souza 7514066fc3
fix: Client can't load in certain cases (#20336)
* move settings

* remove meteor cache files
2024-05-29 09:26:11 -04:00

13 lines
369 B
TypeScript

import useRev from '/imports/ui/components/pads/pads-graphql/hooks/useRev';
import useNotesLastRev from './useNotesLastRev';
const useHasUnreadNotes = () => {
const NOTES_CONFIG = window.meetingClientSettings.public.notes;
const { lastRev } = useNotesLastRev();
const rev = useRev(NOTES_CONFIG.id);
return rev > lastRev;
};
export default useHasUnreadNotes;