From e489410b0f1e3f5a84e58320831d54c1b6d7b6b0 Mon Sep 17 00:00:00 2001 From: Plastikmensch Date: Wed, 15 Jan 2025 08:18:39 +0100 Subject: [PATCH] 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 --- .../direct_timeline/components/conversation.jsx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 5df3af4b7a..c3e5fc72b8 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 && ( + + )} +