From 88afe7db91159108d73bd44b26968afaf5809842 Mon Sep 17 00:00:00 2001 From: Jason Frerich Date: Wed, 18 Jan 2023 16:26:05 -0600 Subject: [PATCH] [MM-48282] When user selects open in channel, dismiss the bottom sheet (#6956) --- .../search/results/file_options/option_menus/option_menus.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/screens/home/search/results/file_options/option_menus/option_menus.tsx b/app/screens/home/search/results/file_options/option_menus/option_menus.tsx index 64df7a38fc..ef1a552d46 100644 --- a/app/screens/home/search/results/file_options/option_menus/option_menus.tsx +++ b/app/screens/home/search/results/file_options/option_menus/option_menus.tsx @@ -42,6 +42,9 @@ const OptionMenus = ({ const handlePermalink = useCallback(() => { if (fileInfo.post_id) { + if (!isTablet) { + dismissBottomSheet(); + } showPermalink(serverUrl, '', fileInfo.post_id); setAction('opening'); }