diff --git a/app/soapbox/features/chats/components/chat-textarea.tsx b/app/soapbox/features/chats/components/chat-textarea.tsx index 4be5e602d..e11aeecbc 100644 --- a/app/soapbox/features/chats/components/chat-textarea.tsx +++ b/app/soapbox/features/chats/components/chat-textarea.tsx @@ -15,7 +15,7 @@ const ChatTextarea: React.FC = ({ attachments, onDeleteAttachment return (
= ({ className, attachment }) => { + const mimeType = attachment.pleroma.get('mime_type') as string | undefined; + + switch (attachment.type) { + case 'image': + return ( + + ); + case 'video': + return ( +