Support narrow avatar in popular apps search result (#5310)
This commit is contained in:
parent
77a103223b
commit
b03ad51ec4
@ -114,6 +114,7 @@ const BotAppResults: FC<OwnProps & StateProps> = ({
|
|||||||
<LeftSearchResultChat
|
<LeftSearchResultChat
|
||||||
chatId={id}
|
chatId={id}
|
||||||
onClick={handleChatClick}
|
onClick={handleChatClick}
|
||||||
|
withOpenAppButton
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
@ -127,6 +128,7 @@ const BotAppResults: FC<OwnProps & StateProps> = ({
|
|||||||
<LeftSearchResultChat
|
<LeftSearchResultChat
|
||||||
chatId={id}
|
chatId={id}
|
||||||
onClick={handleChatClick}
|
onClick={handleChatClick}
|
||||||
|
withOpenAppButton
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
|
|||||||
@ -28,7 +28,7 @@ import MuteChatModal from '../MuteChatModal.async';
|
|||||||
type OwnProps = {
|
type OwnProps = {
|
||||||
chatId: string;
|
chatId: string;
|
||||||
withUsername?: boolean;
|
withUsername?: boolean;
|
||||||
isRecent?: boolean;
|
withOpenAppButton?: boolean;
|
||||||
onClick: (id: string) => void;
|
onClick: (id: string) => void;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -48,7 +48,7 @@ const LeftSearchResultChat: FC<OwnProps & StateProps> = ({
|
|||||||
isPinned,
|
isPinned,
|
||||||
isMuted,
|
isMuted,
|
||||||
canChangeFolder,
|
canChangeFolder,
|
||||||
isRecent,
|
withOpenAppButton,
|
||||||
onClick,
|
onClick,
|
||||||
}) => {
|
}) => {
|
||||||
const { requestMainWebView } = getActions();
|
const { requestMainWebView } = getActions();
|
||||||
@ -121,7 +121,7 @@ const LeftSearchResultChat: FC<OwnProps & StateProps> = ({
|
|||||||
storyViewerOrigin={StoryViewerOrigin.SearchResult}
|
storyViewerOrigin={StoryViewerOrigin.SearchResult}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{isRecent && user?.hasMainMiniApp && (
|
{withOpenAppButton && user?.hasMainMiniApp && (
|
||||||
<Button
|
<Button
|
||||||
className="ChatBadge miniapp"
|
className="ChatBadge miniapp"
|
||||||
pill
|
pill
|
||||||
|
|||||||
@ -119,7 +119,7 @@ const RecentContacts: FC<OwnProps & StateProps> = ({
|
|||||||
{recentlyFoundChatIds.map((id) => (
|
{recentlyFoundChatIds.map((id) => (
|
||||||
<LeftSearchResultChat
|
<LeftSearchResultChat
|
||||||
chatId={id}
|
chatId={id}
|
||||||
isRecent
|
withOpenAppButton
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user