Skip to content

feat: preserve writing time for delayed messages (WPB-30354) - #5576

Merged
sbakhtiarov merged 1 commit into
developfrom
feat/written-earlier
Dec 4, 2026
Merged

sbakhtiarov merged 1 commit into
developfrom
feat/written-earlier

Conversation

@sbakhtiarov

@sbakhtiarov sbakhtiarov commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

https://wearezeta.atlassian.net/browse/WPB-30354

https://wearezeta.atlassian.net/browse/WPB-30354

What's new in this PR?

Issues

When a message arrives after an offline delay, its timestamp shows when it was sent. That leaves readers without context for when it was written.

Solutions

  • Show a localized, fixed writing-to-send gap inline with the timestamp, using the same dot separator as Edited. For example, 6:34 PM · Written 5 min earlier.
  • Show the label for incoming and outgoing messages in both bubble and legacy layouts, including grouped messages.
Screenshot_20261124_180609

@codecov

codecov Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 59.09091% with 9 lines in your changes missing coverage. Please review.
✅ Project coverage is 56.98%. Comparing base (d922092) to head (47cb375).

Files with missing lines Patch % Lines
...in/kotlin/com/wire/android/mapper/MessageMapper.kt 45.45% 1 Missing and 5 partials ⚠️
...kotlin/com/wire/android/util/DateAndTimeParsers.kt 70.00% 2 Missing and 1 partial ⚠️

❌ Your patch check has failed because the patch coverage (59.09%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #5576   +/-   ##
========================================
  Coverage    56.97%   56.98%           
========================================
  Files          821      821           
  Lines        28598    28619   +21     
  Branches      4440     4446    +6     
========================================
+ Hits         16294    16308   +14     
- Misses       10876    10879    +3     
- Partials      1428     1432    +4     
Files with missing lines Coverage Δ
.../conversations/messages/item/RegularMessageItem.kt 0.00% <ø> (ø)
...e/android/ui/home/conversations/model/UIMessage.kt 41.96% <100.00%> (+0.17%) ⬆️
...kotlin/com/wire/android/util/DateAndTimeParsers.kt 55.81% <70.00%> (+1.19%) ⬆️
...in/kotlin/com/wire/android/mapper/MessageMapper.kt 61.53% <45.45%> (-1.08%) ⬇️

... and 1 file with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d922092...47cb375. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Test Results

  373 files  ±0    373 suites  ±0   2m 2s ⏱️ -1s
3 331 tests +2  3 331 ✅ +2  0 💤 ±0  0 ❌ ±0 
3 343 runs  +2  3 343 ✅ +2  0 💤 ±0  0 ❌ ±0 

Results for commit 47cb375. ± Comparison against base commit d922092.

♻️ This comment has been updated with latest results.

@sbakhtiarov
sbakhtiarov force-pushed the feat/written-earlier branch 7 times, most recently from 48e773c to 2cc6462 Compare December 3, 2026 20:44
@sbakhtiarov
sbakhtiarov enabled auto-merge December 4, 2026 07:03
@sbakhtiarov
sbakhtiarov added this pull request to the merge queue Dec 4, 2026
Merged via the queue into develop with commit 5e468af Dec 4, 2026
20 checks passed
@sbakhtiarov
sbakhtiarov deleted the feat/written-earlier branch December 4, 2026 07:25
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