2023-04-12 23:51:23 +08:00
|
|
|
import React, { useEffect, useRef, useState } from 'react';
|
2018-01-08 12:44:42 +08:00
|
|
|
import { withTracker } from 'meteor/react-meteor-data';
|
2017-07-14 22:18:07 +08:00
|
|
|
import Auth from '/imports/ui/services/auth';
|
2021-10-20 04:35:39 +08:00
|
|
|
import Users from '/imports/api/users';
|
2022-01-21 01:50:16 +08:00
|
|
|
import Meetings, { LayoutMeetings } from '/imports/api/meetings';
|
2023-11-30 23:10:36 +08:00
|
|
|
import AudioCaptionsLiveContainer from '/imports/ui/components/audio/captions/history/container';
|
2022-03-25 03:05:20 +08:00
|
|
|
import AudioCaptionsService from '/imports/ui/components/audio/captions/service';
|
2019-04-13 14:06:50 +08:00
|
|
|
import { notify } from '/imports/ui/services/notification';
|
2021-10-16 03:07:13 +08:00
|
|
|
import CaptionsContainer from '/imports/ui/components/captions/live/container';
|
2019-05-17 04:11:10 +08:00
|
|
|
import CaptionsService from '/imports/ui/components/captions/service';
|
2018-10-19 04:37:14 +08:00
|
|
|
import getFromUserSettings from '/imports/ui/services/users-settings';
|
2019-05-09 01:52:12 +08:00
|
|
|
import deviceInfo from '/imports/utils/deviceInfo';
|
2019-04-11 03:40:40 +08:00
|
|
|
import UserInfos from '/imports/api/users-infos';
|
2021-05-28 01:46:27 +08:00
|
|
|
import Settings from '/imports/ui/services/settings';
|
2021-06-15 04:25:05 +08:00
|
|
|
import MediaService from '/imports/ui/components/media/service';
|
2022-02-08 03:36:21 +08:00
|
|
|
import LayoutService from '/imports/ui/components/layout/service';
|
2023-02-23 04:16:43 +08:00
|
|
|
import { isPresentationEnabled } from '/imports/ui/services/features';
|
2021-10-20 04:35:39 +08:00
|
|
|
import {
|
|
|
|
layoutSelect,
|
|
|
|
layoutSelectInput,
|
|
|
|
layoutSelectOutput,
|
|
|
|
layoutDispatch,
|
2021-09-11 04:48:52 +08:00
|
|
|
} from '../layout/context';
|
2023-02-23 21:27:16 +08:00
|
|
|
import { isEqual } from 'radash';
|
2019-04-11 03:40:40 +08:00
|
|
|
|
2022-05-12 05:48:12 +08:00
|
|
|
const ROLE_MODERATOR = Meteor.settings.public.user.role_moderator;
|
|
|
|
|
2016-11-07 23:52:39 +08:00
|
|
|
import {
|
2017-02-25 04:19:53 +08:00
|
|
|
getFontSize,
|
2018-10-24 01:18:09 +08:00
|
|
|
getBreakoutRooms,
|
2016-11-07 23:52:39 +08:00
|
|
|
} from './service';
|
|
|
|
|
2017-03-17 03:57:45 +08:00
|
|
|
import App from './component';
|
2016-12-23 07:34:20 +08:00
|
|
|
|
2021-08-05 10:36:30 +08:00
|
|
|
const CUSTOM_STYLE_URL = Meteor.settings.public.app.customStyleUrl;
|
|
|
|
|
2022-08-16 04:25:45 +08:00
|
|
|
const endMeeting = (code, ejectedReason) => {
|
2018-10-25 23:20:37 +08:00
|
|
|
Session.set('codeError', code);
|
2022-08-16 04:25:45 +08:00
|
|
|
Session.set('errorMessageDescription', ejectedReason);
|
2018-10-25 23:20:37 +08:00
|
|
|
Session.set('isMeetingEnded', true);
|
|
|
|
};
|
|
|
|
|
2017-07-14 22:18:07 +08:00
|
|
|
const AppContainer = (props) => {
|
2021-12-02 01:58:36 +08:00
|
|
|
function usePrevious(value) {
|
|
|
|
const ref = useRef();
|
|
|
|
useEffect(() => {
|
|
|
|
ref.current = value;
|
|
|
|
});
|
|
|
|
return ref.current;
|
|
|
|
}
|
|
|
|
|
2023-02-17 00:23:41 +08:00
|
|
|
const layoutType = useRef(null);
|
|
|
|
|
2017-10-06 22:58:21 +08:00
|
|
|
const {
|
|
|
|
actionsbar,
|
2021-11-19 22:36:06 +08:00
|
|
|
selectedLayout,
|
2021-12-16 04:09:21 +08:00
|
|
|
pushLayout,
|
2022-03-09 23:09:56 +08:00
|
|
|
pushLayoutMeeting,
|
2021-06-30 22:29:03 +08:00
|
|
|
currentUserId,
|
2021-09-03 02:29:35 +08:00
|
|
|
shouldShowPresentation: propsShouldShowPresentation,
|
2021-09-22 19:48:25 +08:00
|
|
|
presentationRestoreOnUpdate,
|
2021-12-02 01:58:36 +08:00
|
|
|
isPresenter,
|
|
|
|
randomlySelectedUser,
|
|
|
|
isModalOpen,
|
2022-09-03 02:18:17 +08:00
|
|
|
meetingLayout,
|
|
|
|
meetingLayoutUpdatedAt,
|
|
|
|
meetingPresentationIsOpen,
|
2022-10-10 21:32:19 +08:00
|
|
|
isMeetingLayoutResizing,
|
2022-09-03 02:18:17 +08:00
|
|
|
meetingLayoutCameraPosition,
|
|
|
|
meetingLayoutFocusedCamera,
|
|
|
|
meetingLayoutVideoRate,
|
2023-07-28 02:49:21 +08:00
|
|
|
isSharedNotesPinned,
|
2017-10-06 22:58:21 +08:00
|
|
|
...otherProps
|
|
|
|
} = props;
|
2021-09-10 21:16:44 +08:00
|
|
|
|
2021-09-11 04:48:52 +08:00
|
|
|
const sidebarContent = layoutSelectInput((i) => i.sidebarContent);
|
|
|
|
const sidebarNavigation = layoutSelectInput((i) => i.sidebarNavigation);
|
|
|
|
const actionsBarStyle = layoutSelectOutput((i) => i.actionBar);
|
|
|
|
const captionsStyle = layoutSelectOutput((i) => i.captions);
|
2022-02-11 22:30:35 +08:00
|
|
|
const cameraDock = layoutSelectOutput((i) => i.cameraDock);
|
2022-03-23 02:29:49 +08:00
|
|
|
const cameraDockInput = layoutSelectInput((i) => i.cameraDock);
|
2021-09-14 02:41:52 +08:00
|
|
|
const presentation = layoutSelectInput((i) => i.presentation);
|
2021-09-11 04:48:52 +08:00
|
|
|
const deviceType = layoutSelect((i) => i.deviceType);
|
|
|
|
const layoutContextDispatch = layoutDispatch();
|
2021-09-10 21:16:44 +08:00
|
|
|
|
2021-09-14 02:41:52 +08:00
|
|
|
const { sidebarContentPanel, isOpen: sidebarContentIsOpen } = sidebarContent;
|
|
|
|
const { sidebarNavPanel, isOpen: sidebarNavigationIsOpen } = sidebarNavigation;
|
2023-02-17 23:44:36 +08:00
|
|
|
const { isOpen } = presentation;
|
2023-02-21 23:44:12 +08:00
|
|
|
const presentationIsOpen = isOpen;
|
|
|
|
|
2023-02-17 23:44:36 +08:00
|
|
|
const shouldShowPresentation = (propsShouldShowPresentation
|
2023-02-23 04:16:43 +08:00
|
|
|
&& (presentationIsOpen || presentationRestoreOnUpdate)) && isPresentationEnabled();
|
2017-10-06 22:58:21 +08:00
|
|
|
|
2022-02-11 22:30:35 +08:00
|
|
|
const { focusedId } = cameraDock;
|
|
|
|
|
2023-07-20 00:22:50 +08:00
|
|
|
useEffect(() => {
|
|
|
|
if (
|
|
|
|
layoutContextDispatch
|
|
|
|
&& (typeof meetingLayout !== 'undefined')
|
|
|
|
&& (layoutType.current !== meetingLayout)
|
2023-07-28 02:49:21 +08:00
|
|
|
&& isSharedNotesPinned
|
2023-02-17 00:23:41 +08:00
|
|
|
) {
|
|
|
|
layoutType.current = meetingLayout;
|
|
|
|
MediaService.setPresentationIsOpen(layoutContextDispatch, true);
|
2023-07-20 00:22:50 +08:00
|
|
|
}
|
|
|
|
}, [meetingLayout, layoutContextDispatch, layoutType]);
|
2023-02-17 00:23:41 +08:00
|
|
|
|
2022-02-12 03:41:22 +08:00
|
|
|
const horizontalPosition = cameraDock.position === 'contentLeft' || cameraDock.position === 'contentRight';
|
2022-02-05 02:03:39 +08:00
|
|
|
// this is not exactly right yet
|
|
|
|
let presentationVideoRate;
|
2022-02-12 03:41:22 +08:00
|
|
|
if (horizontalPosition) {
|
2022-02-05 02:03:39 +08:00
|
|
|
presentationVideoRate = cameraDock.width / window.innerWidth;
|
2022-02-12 03:41:22 +08:00
|
|
|
} else {
|
|
|
|
presentationVideoRate = cameraDock.height / window.innerHeight;
|
2022-02-05 02:03:39 +08:00
|
|
|
}
|
2022-03-17 01:12:11 +08:00
|
|
|
presentationVideoRate = parseFloat(presentationVideoRate.toFixed(2));
|
2022-02-05 02:03:39 +08:00
|
|
|
|
2021-12-02 01:58:36 +08:00
|
|
|
const prevRandomUser = usePrevious(randomlySelectedUser);
|
|
|
|
|
2023-04-12 23:51:23 +08:00
|
|
|
const [mountRandomUserModal, setMountRandomUserModal] = useState(false);
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
setMountRandomUserModal(!isPresenter
|
|
|
|
&& !isEqual(prevRandomUser, randomlySelectedUser)
|
|
|
|
&& randomlySelectedUser.length > 0
|
|
|
|
&& !isModalOpen);
|
|
|
|
}, [isPresenter, prevRandomUser, randomlySelectedUser, isModalOpen]);
|
2021-12-02 01:58:36 +08:00
|
|
|
|
2022-05-12 05:48:12 +08:00
|
|
|
const setPushLayout = () => {
|
2022-05-20 04:07:58 +08:00
|
|
|
LayoutService.setPushLayout(pushLayout);
|
2022-05-12 05:48:12 +08:00
|
|
|
}
|
|
|
|
|
2022-02-08 03:36:21 +08:00
|
|
|
const setMeetingLayout = () => {
|
2022-03-23 02:29:49 +08:00
|
|
|
const { isResizing } = cameraDockInput;
|
|
|
|
LayoutService.setMeetingLayout({
|
|
|
|
layout: selectedLayout,
|
|
|
|
presentationIsOpen,
|
|
|
|
isResizing,
|
|
|
|
cameraPosition: cameraDock.position,
|
|
|
|
focusedCamera: focusedId,
|
|
|
|
presentationVideoRate,
|
2022-03-09 23:09:56 +08:00
|
|
|
pushLayout,
|
2022-03-23 02:29:49 +08:00
|
|
|
});
|
|
|
|
};
|
2022-02-08 03:36:21 +08:00
|
|
|
|
2023-02-21 23:44:12 +08:00
|
|
|
useEffect(() => {
|
2023-07-20 00:22:50 +08:00
|
|
|
MediaService.buildLayoutWhenPresentationAreaIsDisabled(layoutContextDispatch)
|
|
|
|
});
|
2023-05-15 22:58:30 +08:00
|
|
|
|
2021-07-21 21:19:47 +08:00
|
|
|
return currentUserId
|
|
|
|
? (
|
|
|
|
<App
|
|
|
|
{...{
|
|
|
|
actionsBarStyle,
|
2021-08-16 21:38:39 +08:00
|
|
|
captionsStyle,
|
2021-07-21 21:19:47 +08:00
|
|
|
currentUserId,
|
2022-05-12 05:48:12 +08:00
|
|
|
setPushLayout,
|
2022-02-08 03:36:21 +08:00
|
|
|
setMeetingLayout,
|
2021-07-21 21:19:47 +08:00
|
|
|
meetingLayout,
|
2021-11-19 22:36:06 +08:00
|
|
|
selectedLayout,
|
2021-12-16 04:09:21 +08:00
|
|
|
pushLayout,
|
2022-03-09 23:09:56 +08:00
|
|
|
pushLayoutMeeting,
|
2022-02-05 02:03:39 +08:00
|
|
|
meetingLayoutUpdatedAt,
|
2022-02-11 22:32:08 +08:00
|
|
|
presentationIsOpen,
|
|
|
|
cameraPosition: cameraDock.position,
|
|
|
|
focusedCamera: focusedId,
|
|
|
|
presentationVideoRate,
|
2022-02-05 02:03:39 +08:00
|
|
|
cameraWidth: cameraDock.width,
|
|
|
|
cameraHeight: cameraDock.height,
|
2022-03-23 02:29:49 +08:00
|
|
|
cameraIsResizing: cameraDockInput.isResizing,
|
2022-09-03 02:18:17 +08:00
|
|
|
meetingPresentationIsOpen,
|
2022-10-10 21:32:19 +08:00
|
|
|
isMeetingLayoutResizing,
|
2022-09-03 02:18:17 +08:00
|
|
|
meetingLayoutCameraPosition,
|
|
|
|
meetingLayoutFocusedCamera,
|
|
|
|
meetingLayoutVideoRate,
|
2022-02-12 03:41:22 +08:00
|
|
|
horizontalPosition,
|
2021-07-21 21:19:47 +08:00
|
|
|
deviceType,
|
2021-08-05 19:03:24 +08:00
|
|
|
layoutContextDispatch,
|
2021-07-21 21:19:47 +08:00
|
|
|
sidebarNavPanel,
|
|
|
|
sidebarNavigationIsOpen,
|
|
|
|
sidebarContentPanel,
|
|
|
|
sidebarContentIsOpen,
|
2021-09-03 02:29:35 +08:00
|
|
|
shouldShowPresentation,
|
2021-12-02 01:58:36 +08:00
|
|
|
mountRandomUserModal,
|
2023-04-12 23:51:23 +08:00
|
|
|
setMountRandomUserModal,
|
2021-12-02 01:58:36 +08:00
|
|
|
isPresenter,
|
2022-11-23 01:15:15 +08:00
|
|
|
numCameras: cameraDockInput.numCameras,
|
2021-07-21 21:19:47 +08:00
|
|
|
}}
|
|
|
|
{...otherProps}
|
|
|
|
/>
|
|
|
|
)
|
|
|
|
: null;
|
2017-07-14 22:18:07 +08:00
|
|
|
};
|
2016-07-07 22:01:40 +08:00
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
const currentUserEmoji = (currentUser) => (currentUser
|
|
|
|
? {
|
|
|
|
status: currentUser.emoji,
|
|
|
|
changedAt: currentUser.emojiTime,
|
|
|
|
}
|
|
|
|
: {
|
2020-10-08 03:50:17 +08:00
|
|
|
status: 'none',
|
|
|
|
changedAt: null,
|
2021-05-18 04:25:07 +08:00
|
|
|
}
|
|
|
|
);
|
2019-08-31 02:43:48 +08:00
|
|
|
|
2023-04-11 22:02:00 +08:00
|
|
|
export default withTracker(() => {
|
2021-02-21 12:07:25 +08:00
|
|
|
Users.find({ userId: Auth.userID, meetingId: Auth.meetingID }).observe({
|
2022-08-16 04:25:45 +08:00
|
|
|
removed(userData) {
|
2022-08-30 09:50:57 +08:00
|
|
|
// wait 3secs (before endMeeting), client will try to authenticate again
|
|
|
|
const delayForReconnection = userData.ejected ? 0 : 3000;
|
2022-08-18 01:08:55 +08:00
|
|
|
setTimeout(() => {
|
|
|
|
const queryCurrentUser = Users.find({ userId: Auth.userID, meetingId: Auth.meetingID });
|
|
|
|
if (queryCurrentUser.count() === 0) {
|
2022-10-05 22:30:12 +08:00
|
|
|
if (userData.ejected) {
|
2022-10-07 20:18:07 +08:00
|
|
|
endMeeting('403', userData.ejectedReason);
|
2022-10-05 22:30:12 +08:00
|
|
|
} else {
|
|
|
|
// Either authentication process hasn't finished yet or user did authenticate but Users
|
|
|
|
// collection is unsynchronized. In both cases user may be able to rejoin.
|
|
|
|
const description = Auth.isAuthenticating || Auth.loggedIn
|
|
|
|
? 'able_to_rejoin_user_disconnected_reason'
|
|
|
|
: null;
|
2022-10-07 20:18:07 +08:00
|
|
|
endMeeting('503', description);
|
2022-10-05 22:30:12 +08:00
|
|
|
}
|
2022-08-18 01:08:55 +08:00
|
|
|
}
|
2022-08-30 09:50:57 +08:00
|
|
|
}, delayForReconnection);
|
2020-09-16 20:52:44 +08:00
|
|
|
},
|
|
|
|
});
|
|
|
|
|
2021-05-18 04:25:07 +08:00
|
|
|
const currentUser = Users.findOne(
|
|
|
|
{ userId: Auth.userID },
|
|
|
|
{
|
|
|
|
fields:
|
|
|
|
{
|
2023-06-08 09:57:49 +08:00
|
|
|
approved: 1, emoji: 1, raiseHand: 1, away: 1, userId: 1, presenter: 1, role: 1,
|
2021-05-18 04:25:07 +08:00
|
|
|
},
|
|
|
|
},
|
|
|
|
);
|
2022-01-11 13:02:24 +08:00
|
|
|
|
2019-08-22 20:05:06 +08:00
|
|
|
const currentMeeting = Meetings.findOne({ meetingId: Auth.meetingID },
|
2021-06-22 04:59:55 +08:00
|
|
|
{
|
|
|
|
fields: {
|
|
|
|
randomlySelectedUser: 1,
|
|
|
|
layout: 1,
|
|
|
|
},
|
|
|
|
});
|
|
|
|
const {
|
|
|
|
randomlySelectedUser,
|
|
|
|
} = currentMeeting;
|
2017-07-14 22:18:07 +08:00
|
|
|
|
2022-09-03 02:18:17 +08:00
|
|
|
const meetingLayoutObj = LayoutMeetings.findOne({ meetingId: Auth.meetingID }) || {};
|
|
|
|
const {
|
|
|
|
layout: meetingLayout,
|
|
|
|
pushLayout: pushLayoutMeeting,
|
|
|
|
layoutUpdatedAt: meetingLayoutUpdatedAt,
|
|
|
|
presentationIsOpen: meetingPresentationIsOpen,
|
|
|
|
isResizing: isMeetingLayoutResizing,
|
|
|
|
cameraPosition: meetingLayoutCameraPosition,
|
|
|
|
focusedCamera: meetingLayoutFocusedCamera,
|
|
|
|
presentationVideoRate: meetingLayoutVideoRate,
|
|
|
|
} = meetingLayoutObj;
|
2022-01-21 01:50:16 +08:00
|
|
|
|
2019-04-12 04:54:15 +08:00
|
|
|
const UserInfo = UserInfos.find({
|
|
|
|
meetingId: Auth.meetingID,
|
|
|
|
requesterUserId: Auth.userID,
|
|
|
|
}).fetch();
|
2019-04-12 04:23:18 +08:00
|
|
|
|
2021-05-28 01:46:27 +08:00
|
|
|
const AppSettings = Settings.application;
|
2023-02-27 23:18:23 +08:00
|
|
|
const { selectedLayout, pushLayout } = AppSettings;
|
2021-06-15 04:25:05 +08:00
|
|
|
const { viewScreenshare } = Settings.dataSaving;
|
2022-10-24 21:11:28 +08:00
|
|
|
const shouldShowSharedNotes = MediaService.shouldShowSharedNotes();
|
2021-06-16 20:53:27 +08:00
|
|
|
const shouldShowExternalVideo = MediaService.shouldShowExternalVideo();
|
2021-07-21 21:19:47 +08:00
|
|
|
const shouldShowScreenshare = MediaService.shouldShowScreenshare()
|
2021-11-24 00:43:49 +08:00
|
|
|
&& (viewScreenshare || currentUser?.presenter);
|
2021-08-05 10:36:30 +08:00
|
|
|
let customStyleUrl = getFromUserSettings('bbb_custom_style_url', false);
|
|
|
|
|
|
|
|
if (!customStyleUrl && CUSTOM_STYLE_URL) {
|
|
|
|
customStyleUrl = CUSTOM_STYLE_URL;
|
|
|
|
}
|
2021-05-18 04:25:07 +08:00
|
|
|
|
2021-09-28 03:57:02 +08:00
|
|
|
const LAYOUT_CONFIG = Meteor.settings.public.layout;
|
|
|
|
|
2022-02-05 02:03:39 +08:00
|
|
|
const isPresenter = currentUser?.presenter;
|
|
|
|
|
2023-11-30 23:10:36 +08:00
|
|
|
const transcriptionSettings = {
|
|
|
|
partialUtterances: getFromUserSettings('bbb_transcription_partial_utterances'),
|
|
|
|
minUtteranceLength: getFromUserSettings('bbb_transcription_min_utterance_length'),
|
|
|
|
};
|
|
|
|
|
2017-06-03 03:25:02 +08:00
|
|
|
return {
|
2019-05-18 04:02:28 +08:00
|
|
|
captions: CaptionsService.isCaptionsActive() ? <CaptionsContainer /> : null,
|
2022-03-25 03:05:20 +08:00
|
|
|
audioCaptions: AudioCaptionsService.getAudioCaptions() ? <AudioCaptionsLiveContainer /> : null,
|
2017-06-03 03:25:02 +08:00
|
|
|
fontSize: getFontSize(),
|
2018-10-24 01:18:09 +08:00
|
|
|
hasBreakoutRooms: getBreakoutRooms().length > 0,
|
2019-07-22 22:28:13 +08:00
|
|
|
customStyle: getFromUserSettings('bbb_custom_style', false),
|
2021-08-05 10:36:30 +08:00
|
|
|
customStyleUrl,
|
2019-04-11 03:40:40 +08:00
|
|
|
UserInfo,
|
2019-04-13 14:06:50 +08:00
|
|
|
notify,
|
2021-04-01 01:13:36 +08:00
|
|
|
isPhone: deviceInfo.isPhone,
|
2019-07-16 03:15:58 +08:00
|
|
|
isRTL: document.documentElement.getAttribute('dir') === 'rtl',
|
2019-08-31 02:43:48 +08:00
|
|
|
currentUserEmoji: currentUserEmoji(currentUser),
|
2023-06-08 09:57:49 +08:00
|
|
|
currentUserAway: currentUser.away,
|
|
|
|
currentUserRaiseHand: currentUser.raiseHand,
|
2020-08-29 01:23:27 +08:00
|
|
|
randomlySelectedUser,
|
2021-06-30 22:29:03 +08:00
|
|
|
currentUserId: currentUser?.userId,
|
2022-02-05 02:03:39 +08:00
|
|
|
isPresenter,
|
2022-08-23 03:32:12 +08:00
|
|
|
isModerator: currentUser?.role === ROLE_MODERATOR,
|
2022-09-03 02:18:17 +08:00
|
|
|
meetingLayout,
|
|
|
|
meetingLayoutUpdatedAt,
|
|
|
|
meetingPresentationIsOpen,
|
|
|
|
isMeetingLayoutResizing,
|
|
|
|
meetingLayoutCameraPosition,
|
|
|
|
meetingLayoutFocusedCamera,
|
|
|
|
meetingLayoutVideoRate,
|
2021-11-19 22:36:06 +08:00
|
|
|
selectedLayout,
|
2021-12-16 04:09:21 +08:00
|
|
|
pushLayout,
|
2022-03-09 23:09:56 +08:00
|
|
|
pushLayoutMeeting,
|
2021-05-28 01:46:27 +08:00
|
|
|
audioAlertEnabled: AppSettings.chatAudioAlerts,
|
|
|
|
pushAlertEnabled: AppSettings.chatPushAlerts,
|
2022-04-09 03:05:29 +08:00
|
|
|
darkTheme: AppSettings.darkTheme,
|
2021-06-15 04:25:05 +08:00
|
|
|
shouldShowScreenshare,
|
2022-10-24 21:11:28 +08:00
|
|
|
shouldShowPresentation: !shouldShowScreenshare && !shouldShowExternalVideo && !shouldShowSharedNotes,
|
2021-06-17 04:41:33 +08:00
|
|
|
shouldShowExternalVideo,
|
2022-10-24 21:11:28 +08:00
|
|
|
shouldShowSharedNotes,
|
2021-06-22 04:16:59 +08:00
|
|
|
isLargeFont: Session.get('isLargeFont'),
|
2021-09-22 19:48:25 +08:00
|
|
|
presentationRestoreOnUpdate: getFromUserSettings(
|
|
|
|
'bbb_force_restore_presentation_on_new_events',
|
|
|
|
Meteor.settings.public.presentation.restoreOnUpdate,
|
|
|
|
),
|
2023-02-18 01:59:39 +08:00
|
|
|
hidePresentationOnJoin: getFromUserSettings('bbb_hide_presentation_on_join', LAYOUT_CONFIG.hidePresentationOnJoin),
|
2021-10-20 03:20:31 +08:00
|
|
|
hideActionsBar: getFromUserSettings('bbb_hide_actions_bar', false),
|
2022-11-08 01:47:20 +08:00
|
|
|
ignorePollNotifications: Session.get('ignorePollNotifications'),
|
2023-07-28 02:49:21 +08:00
|
|
|
isSharedNotesPinned: MediaService.shouldShowSharedNotes(),
|
2023-11-30 23:10:36 +08:00
|
|
|
transcriptionSettings,
|
2017-06-03 03:25:02 +08:00
|
|
|
};
|
2023-04-11 22:02:00 +08:00
|
|
|
})(AppContainer);
|