Merge pull request #20541 from Scroody/i-20488

Fix:[3.0] White bar shows up when public chat is closed
This commit is contained in:
Ramón Souza 2024-06-21 08:38:03 -03:00 committed by GitHub
commit d2c5b72512
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,6 +22,7 @@ import {
} from '/imports/ui/components/screenshare/service';
import useDeduplicatedSubscription from '../../core/hooks/useDeduplicatedSubscription';
import { useIsPresentationEnabled } from '../../services/features';
import { useStorageKey } from '/imports/ui/services/storage/hooks';
const intlMessages = defineMessages({
hide: {
@ -193,7 +194,11 @@ const NotesContainerGraphql: React.FC<NotesContainerGraphqlProps> = (props) => {
const NOTES_CONFIG = window.meetingClientSettings.public.notes;
const isRTL = document.documentElement.getAttribute('dir') === 'rtl';
const shouldShowSharedNotesOnPresentationArea = !!pinnedPadData
const { isOpen: isSidebarContentOpen } = sidebarContent;
const isGridLayout = useStorageKey('isGridEnabled');
const shouldShowSharedNotesOnPresentationArea = isGridLayout ? !!pinnedPadData
&& pinnedPadData.sharedNotes[0]?.sharedNotesExtId === NOTES_CONFIG.id && isSidebarContentOpen : !!pinnedPadData
&& pinnedPadData.sharedNotes[0]?.sharedNotesExtId === NOTES_CONFIG.id;
const [stopExternalVideoShare] = useMutation(EXTERNAL_VIDEO_STOP);