Message List: Fix image preview in bot info (#2187)
This commit is contained in:
parent
5ef2249413
commit
8a218504c1
@ -505,8 +505,6 @@ const MessageList: FC<OwnProps & StateProps> = ({
|
|||||||
const isGroupChatJustCreated = isGroupChat && isCreator
|
const isGroupChatJustCreated = isGroupChat && isCreator
|
||||||
&& messageIds?.length === 1 && messagesById?.[messageIds[0]]?.content.action?.type === 'chatCreate';
|
&& messageIds?.length === 1 && messagesById?.[messageIds[0]]?.content.action?.type === 'chatCreate';
|
||||||
|
|
||||||
const isBotInfoEmpty = botInfo && !botInfo.description;
|
|
||||||
|
|
||||||
const className = buildClassName(
|
const className = buildClassName(
|
||||||
'MessageList custom-scroll',
|
'MessageList custom-scroll',
|
||||||
noAvatars && 'no-avatars',
|
noAvatars && 'no-avatars',
|
||||||
@ -535,7 +533,7 @@ const MessageList: FC<OwnProps & StateProps> = ({
|
|||||||
) : botInfo ? (
|
) : botInfo ? (
|
||||||
<div className="empty">
|
<div className="empty">
|
||||||
{isLoadingBotInfo && <span>{lang('Loading')}</span>}
|
{isLoadingBotInfo && <span>{lang('Loading')}</span>}
|
||||||
{isBotInfoEmpty && <span>{lang('NoMessages')}</span>}
|
{!botInfo && !isLoadingBotInfo && <span>{lang('NoMessages')}</span>}
|
||||||
{botInfo && (
|
{botInfo && (
|
||||||
<div
|
<div
|
||||||
className="bot-info"
|
className="bot-info"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user