diff --git a/ts/components/leftpane/ActionsPanel.tsx b/ts/components/leftpane/ActionsPanel.tsx index ed321dd1a..990ee501b 100644 --- a/ts/components/leftpane/ActionsPanel.tsx +++ b/ts/components/leftpane/ActionsPanel.tsx @@ -25,7 +25,7 @@ import { import { applyTheme } from '../../state/ducks/theme'; import { getFocusedSection } from '../../state/selectors/section'; import { clearSearch } from '../../state/ducks/search'; -import { SectionType, showLeftPaneSection } from '../../state/ducks/section'; +import { SectionType, setOverlayMode, showLeftPaneSection } from '../../state/ducks/section'; import { cleanUpOldDecryptedMedias } from '../../session/crypto/DecryptedAttachmentsManager'; @@ -83,6 +83,7 @@ const Section = (props: { type: SectionType }) => { } else { dispatch(clearSearch()); dispatch(showLeftPaneSection(type)); + dispatch(setOverlayMode(undefined)); } };