mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2025-01-18 19:44:05 +01:00
Fix attachment list in conversation component (#2941)
`media` is no longer part of `StatusContent`, so the attachment list wasn't shown in the private mentions column. Signed-off-by: Plastikmensch <plastikmensch@users.noreply.github.com>
This commit is contained in:
parent
dc2ce2b305
commit
e489410b0f
1 changed files with 7 additions and 6 deletions
|
@ -177,11 +177,6 @@ export const Conversation = ({ conversation, scrollKey, onMoveUp, onMoveDown })
|
||||||
toggleHidden: handleShowMore,
|
toggleHidden: handleShowMore,
|
||||||
};
|
};
|
||||||
|
|
||||||
let media = null;
|
|
||||||
if (lastStatus.get('media_attachments').size > 0) {
|
|
||||||
media = <AttachmentList compact media={lastStatus.get('media_attachments')} />;
|
|
||||||
}
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<HotKeys handlers={handlers}>
|
<HotKeys handlers={handlers}>
|
||||||
<div className={classNames('conversation focusable muted', { unread })} tabIndex={0}>
|
<div className={classNames('conversation focusable muted', { unread })} tabIndex={0}>
|
||||||
|
@ -206,9 +201,15 @@ export const Conversation = ({ conversation, scrollKey, onMoveUp, onMoveDown })
|
||||||
expanded={sharedCWState ? lastStatus.get('hidden') : expanded}
|
expanded={sharedCWState ? lastStatus.get('hidden') : expanded}
|
||||||
onExpandedToggle={handleShowMore}
|
onExpandedToggle={handleShowMore}
|
||||||
collapsible
|
collapsible
|
||||||
media={media}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
{lastStatus.get('media_attachments').size > 0 && (
|
||||||
|
<AttachmentList
|
||||||
|
compact
|
||||||
|
media={lastStatus.get('media_attachments')}
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
|
||||||
<div className='status__action-bar'>
|
<div className='status__action-bar'>
|
||||||
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.reply)} icon='reply' iconComponent={ReplyIcon} onClick={handleReply} />
|
<IconButton className='status__action-bar-button' title={intl.formatMessage(messages.reply)} icon='reply' iconComponent={ReplyIcon} onClick={handleReply} />
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue