Skip to content

fix: show the video duration when editing messages - #3972

Merged
isekovanic merged 1 commit into
developfrom
fix/show-duration-when-editing-videos
Nov 11, 2026
Merged

isekovanic merged 1 commit into
developfrom
fix/show-duration-when-editing-videos

Conversation

@isekovanic

Copy link
Copy Markdown
Contributor

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

🎯 Goal

Editing a message with a video showed no duration pill in the composer. Since the OpenAPI migration the duration was never sent with the message, so once the local file is gone there was nothing to show.

πŸ›  Implementation details

  • The video pre-upload middleware now sends the picked file's duration along as custom.duration.
  • VideoAttachmentUploadPreview falls back to custom.duration when there is no local file.
  • Videos sent from v9 work too, since the v2 API returns their old top-level duration under custom. Videos sent from v10 before this fix have no duration stored and still show no pill.

πŸ§ͺ Testing

  • Unit tests for the middleware and the edit preview.
  • Tested on the iOS simulator: picked, sent and edited a video, and the pill shows in the edit view.

@Stream-SDK-Bot

Copy link
Copy Markdown
Contributor

SDK Size

title develop branch diff status
js_bundle_size 2027 KB 2027 KB +176 B 🟒
ai_components_size 163 KB 163 KB 0 B 🟒

@isekovanic
isekovanic requested a review from oliverlaz November 11, 2026 09:38
@isekovanic
isekovanic merged commit 38afef9 into develop Nov 11, 2026
22 checks passed
@isekovanic
isekovanic deleted the fix/show-duration-when-editing-videos branch November 11, 2026 09:51
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