From 8a218504c1b88ca05e965c5bf05ca80a2a9f83e9 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Tue, 6 Dec 2022 13:29:48 +0100 Subject: [PATCH] Message List: Fix image preview in bot info (#2187) --- src/components/middle/MessageList.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/middle/MessageList.tsx b/src/components/middle/MessageList.tsx index a1dfdee45..b8c7f165c 100644 --- a/src/components/middle/MessageList.tsx +++ b/src/components/middle/MessageList.tsx @@ -505,8 +505,6 @@ const MessageList: FC = ({ 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 = ({ ) : botInfo ? (
{isLoadingBotInfo && {lang('Loading')}} - {isBotInfoEmpty && {lang('NoMessages')}} + {!botInfo && !isLoadingBotInfo && {lang('NoMessages')}} {botInfo && (