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

25 lines
761 B
TypeScript

import PollService from '/imports/ui/components/poll/service';
import AudioService from '/imports/ui/components/audio/service';
import { isPollingEnabled } from '/imports/ui/services/features';
const MAX_CHAR_LENGTH = 5;
export const shouldStackOptions = (keys: Array<string>) => keys.some((k) => k.length > MAX_CHAR_LENGTH);
const playAlert = () => {
const APP_CONFIG = window.meetingClientSettings.public.app;
return AudioService.playAlertSound(
`${APP_CONFIG.cdn + APP_CONFIG.basename + APP_CONFIG.instanceId}/resources/sounds/Poll.mp3`,
);
};
export default {
shouldStackOptions,
pollAnswerIds: PollService.pollAnswerIds,
pollTypes: PollService.pollTypes,
isDefaultPoll: PollService.isDefaultPoll,
playAlert,
isPollingEnabled,
};