Skip to content

fix: sent indicator way off on shared file (image/video) - WPB-23929#4489

Open
jullianm wants to merge 1 commit intorelease/cycle-4.17from
fix/sent-indicator-way-off-on-shared-file
Open

fix: sent indicator way off on shared file (image/video) - WPB-23929#4489
jullianm wants to merge 1 commit intorelease/cycle-4.17from
fix/sent-indicator-way-off-on-shared-file

Conversation

@jullianm
Copy link
Contributor

@jullianm jullianm commented Mar 25, 2026

BugWPB-23929 [iOS][Files in conversation] Send indicator appears much below the video in conversation for the sender

Issue

This PR fixes a layout issue on some shared file (image/video) where the height of the custom FlowLayout is not properly computed resulting in a sent indicator looking way off (see screenshots)

BEFORE

Capture d’écran   2026-03-25 à 11 50 22

Capture d’écran   2026-03-25 à 11 49 50

AFTER

Capture d’écran   2026-03-25 à 11 52 46
Capture d’écran   2026-03-25 à 11 51 52

Testing

Describe how to test.

Optional: attachments like images, videos, etc.


Checklist

  • Title contains a reference JIRA issue number like [WPB-XXX].
  • Description is filled and free of optional paragraphs.
  • Adds/updates automated tests.

UI accessibility checklist

If your PR includes UI changes, please utilize this checklist:

  • Make sure you use the API for UI elements that support large fonts.
  • All colors are taken from WireDesign.ColorTheme or constructed using WireDesign.BaseColorPalette.
  • New UI elements have Accessibility strings for VoiceOver.

@sonarqubecloud
Copy link

@github-actions
Copy link
Contributor

github-actions bot commented Mar 25, 2026

Test Results

2 140 tests   2 113 ✅  2m 33s ⏱️
  353 suites     27 💤
    2 files        0 ❌

Results for commit dc6dd53.

♻️ This comment has been updated with latest results.

Summary: workflow run #23538132469
Allure report (download zip): html-report-28778-fix_sent-indicator-way-off-on-shared-file

@datadog-wireapp
Copy link

⚠️ Tests

Fix all issues with Cursor

⚠️ Warnings

🧪 1 Test failed

testThatItRendersLinkPreviewMessagePreview() from Wire-iOS-Tests.MessageReplyPreviewViewTests   View in Datadog   (Fix with Cursor)
Test crashed with signal segv.

ℹ️ Info

No other issues found (see more)

❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: dc6dd53 | Docs | Was this helpful? Give us feedback!

Copy link
Contributor

@samwyndham samwyndham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jullianm Please check that this doesnit break other places that the flow layout is used are not broken - I'm thinking especially sending/receiving multiple files.

@WilhelmOks
Copy link
Collaborator

@jullianm Please check that this doesnit break other places that the flow layout is used are not broken - I'm thinking especially sending/receiving multiple files.

That's a good point.

I was curious and checked where FlowLayout is being used.

It's not used by the file upload (drafts). Instead, it uses an HStack within a horizontal ScrollView.

The other places where it's used are only the two Views where we show the tags. I checked it in the SwiftUI Preview and it looked fine.

Interestingly, we also have unit tests for the FlowLayout. But sadly they didn't catch the issue with the wrong size calculation.
Maybe it would be a good idea to add a unit test to check for this and prevent that kind of regression in the future.

@jullianm
Copy link
Contributor Author

@samwyndham @WilhelmOks checked the various places where flow layout is used and it looks fine.

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.

3 participants