bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/user-reaction/service.js
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

14 lines
545 B
JavaScript

import getFromUserSettings from '/imports/ui/services/users-settings';
import { isReactionsEnabled, useIsReactionsEnabled } from '/imports/ui/services/features/index';
const getEnabledSetting = () => window.meetingClientSettings.public.userReaction.enabled;
const isEnabled = () => isReactionsEnabled() && getFromUserSettings('enable-user-reaction', getEnabledSetting());
const useIsEnabled = () => useIsReactionsEnabled() && getFromUserSettings('enable-user-reaction', getEnabledSetting());
export default {
isEnabled,
useIsEnabled,
};