Skip to content

fix: crash when editing messages with video attachments - #3968

Merged
isekovanic merged 1 commit into
developfrom
fix/crash-when-editing-attachment
Nov 10, 2026
Merged

isekovanic merged 1 commit into
developfrom
fix/crash-when-editing-attachment

Conversation

@isekovanic

@isekovanic isekovanic commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Ticket: https://linear.app/stream/issue/RN-522

🎯 Goal

Editing a message with a video attachment creates a crash. The video upload preview reads the duration off localMetadata.file, which doesn't exist for attachments restored from a sent message or a draft.

🛠 Implementation details

  • Guard the localMetadata.file read in VideoAttachmentUploadPreview. Already sent videos now render without the duration pill and nothing else changes.

🧪 Testing

  • Added a regression test that puts the composer into the editing state with a video attachment.

@isekovanic
isekovanic requested a review from oliverlaz November 10, 2026 21:40
@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 2027 KB 2027 KB +3 B 🟢
ai_components_size 163 KB 163 KB 0 B 🟢

@isekovanic
isekovanic merged commit fafd509 into develop Nov 10, 2026
35 of 37 checks passed
@isekovanic
isekovanic deleted the fix/crash-when-editing-attachment branch November 10, 2026 22:18
@github-actions github-actions Bot mentioned this pull request Nov 10, 2026
6 tasks
@stream-ci-bot

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 10.0.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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants