diff --git a/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx b/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx index 5df3af4b7a027a..c3e5fc72b8723e 100644 --- a/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx +++ b/app/javascript/flavours/glitch/features/direct_timeline/components/conversation.jsx @@ -177,11 +177,6 @@ export const Conversation = ({ conversation, scrollKey, onMoveUp, onMoveDown }) toggleHidden: handleShowMore, }; - let media = null; - if (lastStatus.get('media_attachments').size > 0) { - media = ; - } - return (
@@ -206,9 +201,15 @@ export const Conversation = ({ conversation, scrollKey, onMoveUp, onMoveDown }) expanded={sharedCWState ? lastStatus.get('hidden') : expanded} onExpandedToggle={handleShowMore} collapsible - media={media} /> + {lastStatus.get('media_attachments').size > 0 && ( + + )} +