Skip to content

fix: render attachment type video in FileAttachment view [CRNS-480] - #999

Merged
vishalnarkhede merged 1 commit into
developfrom
vishal/video-attachment-fix
Nov 15, 2021
Merged

vishalnarkhede merged 1 commit into
developfrom
vishal/video-attachment-fix

Conversation

@vishalnarkhede

Copy link
Copy Markdown
Contributor

🎯 Goal

RN SDK currently doesn't support video rendering. And thus when user uploads a video, it gets sent as attachment.type === 'file'. But when file gets uploaded from other SDKs, it gets sent as type video, and handling of this case was wrong within the SDK. It used to get rendered as Card component instead of FileAttachment.

https://getstream.slack.com/archives/C02888QAYG0/p1636955394060400

🛠 Implementation details

Render type video attachment as file attachment.

🎨 UI Changes

BEFORE AFTER
Screenshot 2021-11-15 at 09 02 55 Screenshot 2021-11-15 at 09 03 15

🧪 Testing

Upload video file from react application and check it on react-native example app.

P.S. We currently have a task to ensure attachment consistency across SDKs, so automated tests will be taken care of as part of that story.

@vishalnarkhede vishalnarkhede changed the title fix: render attachment type video in FileAttachment view fix: render attachment type video in FileAttachment view [CRNS-480] Nov 15, 2021
@vishalnarkhede
vishalnarkhede merged commit 1649ee3 into develop Nov 15, 2021
@vishalnarkhede
vishalnarkhede deleted the vishal/video-attachment-fix branch November 15, 2021 08:17
@vishalnarkhede

Copy link
Copy Markdown
Contributor Author

🎉 This PR is included in version 3.10.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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