diff --git a/src/components/left/search/BotAppResults.tsx b/src/components/left/search/BotAppResults.tsx index 89f8e8cc3..e96b1b1a8 100644 --- a/src/components/left/search/BotAppResults.tsx +++ b/src/components/left/search/BotAppResults.tsx @@ -114,6 +114,7 @@ const BotAppResults: FC = ({ ); })} @@ -127,6 +128,7 @@ const BotAppResults: FC = ({ ); })} diff --git a/src/components/left/search/LeftSearchResultChat.tsx b/src/components/left/search/LeftSearchResultChat.tsx index 561be226c..bdcfc927e 100644 --- a/src/components/left/search/LeftSearchResultChat.tsx +++ b/src/components/left/search/LeftSearchResultChat.tsx @@ -28,7 +28,7 @@ import MuteChatModal from '../MuteChatModal.async'; type OwnProps = { chatId: string; withUsername?: boolean; - isRecent?: boolean; + withOpenAppButton?: boolean; onClick: (id: string) => void; }; @@ -48,7 +48,7 @@ const LeftSearchResultChat: FC = ({ isPinned, isMuted, canChangeFolder, - isRecent, + withOpenAppButton, onClick, }) => { const { requestMainWebView } = getActions(); @@ -121,7 +121,7 @@ const LeftSearchResultChat: FC = ({ storyViewerOrigin={StoryViewerOrigin.SearchResult} /> )} - {isRecent && user?.hasMainMiniApp && ( + {withOpenAppButton && user?.hasMainMiniApp && (