mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
Integrates file sharing into the chat interface so uploaded files appear as messages in the chat timeline alongside text messages. Changes: - Created FileMessage component for inline file display in chat - Extracted FileItem component for reusable file UI across chat and file sharing tab - Show "A file was deleted" placeholder instead of removing message when file deleted - Hide message menu (3-dot) when no actions are available for file messages - Add button backgrounds in chat context to hide text on hover - Fix timing: local participant only sees file message after upload completes (progress: 100%) Technical implementation: - Added fileMetadata field to IMessage interface - Added isDeleted flag to IFileMetadata for soft-delete state - Middleware dispatches addMessage when files uploaded (ADD_FILE action) - Middleware uses editMessage when files deleted to preserve chat history - Minimal state retention (only isDeleted flag) for deleted files This provides a unified messaging experience where file sharing is part of the conversation flow.