Message List: Fix image preview in bot info (#2187)

This commit is contained in:
Alexander Zinchuk 2022-12-06 13:29:48 +01:00
parent 5ef2249413
commit 8a218504c1

View File

@ -505,8 +505,6 @@ const MessageList: FC<OwnProps & StateProps> = ({
const isGroupChatJustCreated = isGroupChat && isCreator
&& messageIds?.length === 1 && messagesById?.[messageIds[0]]?.content.action?.type === 'chatCreate';
const isBotInfoEmpty = botInfo && !botInfo.description;
const className = buildClassName(
'MessageList custom-scroll',
noAvatars && 'no-avatars',
@ -535,7 +533,7 @@ const MessageList: FC<OwnProps & StateProps> = ({
) : botInfo ? (
<div className="empty">
{isLoadingBotInfo && <span>{lang('Loading')}</span>}
{isBotInfoEmpty && <span>{lang('NoMessages')}</span>}
{!botInfo && !isLoadingBotInfo && <span>{lang('NoMessages')}</span>}
{botInfo && (
<div
className="bot-info"