Skip to content

Use component factory when rendering message attachments#6133

Draft
gpunto wants to merge 6 commits intov7from
redesign/message-restructure-4
Draft

Use component factory when rendering message attachments#6133
gpunto wants to merge 6 commits intov7from
redesign/message-restructure-4

Conversation

@gpunto
Copy link
Contributor

@gpunto gpunto commented Feb 6, 2026

Goal

This PR finishes the restructuring of the message content, where instead of using attachment factories, we just delegate to the component factory.

Implementation

  • Remove MessageAttachmentsContent (which was using the attachment factories) and directly call the component factory for the remaining attachment types: links, recordings, unknown/custom
  • Removed content parameter from FileAttachmentFactory and updated examples
  • Fix image links appearing among media attachments

🎨 UI Changes

There should be no UI changes here. The redesign of audio & file attachments is coming in the next PR.

Testing

Can be tested in the sample by checking messages with different attachments

@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

SDK Size Comparison 📏

SDK Before After Difference Status
stream-chat-android-client 5.26 MB 5.26 MB 0.00 MB 🟢
stream-chat-android-offline 5.48 MB 5.48 MB 0.00 MB 🟢
stream-chat-android-ui-components 10.63 MB 10.62 MB -0.01 MB 🚀
stream-chat-android-compose 12.84 MB 11.69 MB -1.16 MB 🚀

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 6, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
35.9% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

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.

1 participant