Skip to content

Conversation

@dena-sohrabi
Copy link
Contributor

No description provided.

dena-sohrabi and others added 12 commits May 4, 2025 21:44
…cessing

- Added `message_id` and `peer_id` fields to the `UpdateMessageAttachment` message in the protocol.
- Marked the `message_id` field in `MessageAttachment` as deprecated.
- Introduced a new module for processing Loom links, including fetching oEmbed data and creating URL preview records.
- Updated the `sendMessage` function to handle Loom links in parallel, improving performance.
- Refactored related encoding logic for message attachments to accommodate new fields.
- Added support for converting animated GIFs and MJPEGs to static JPEGs using the sharp library.
- Implemented content type checks to determine the appropriate image processing method.
- Updated thumbnail file creation to accommodate processed image buffers.
- Removed the attachment view and replaced it with a URLPreviewView for displaying link previews in messages.
- Added a new URLPreviewView class to handle the rendering of URL previews, including site name, title, description, and associated images.
- Updated UIMessageView to dynamically insert URLPreviewView instances for attachments with URL previews.
- Refactored related methods to accommodate the new structure and improve message display logic.
@dena-sohrabi dena-sohrabi merged commit 6be7c9f into main May 4, 2025
1 check passed
@morajabi morajabi deleted the Loom-embed branch November 9, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants