Skip to content

fix: new conversation close crash [WPB-26127] [WPB-26131]#4933

Merged
MohamadJaara merged 6 commits into
developfrom
mo/fix/conversation-close-crash
Jun 8, 2026
Merged

fix: new conversation close crash [WPB-26127] [WPB-26131]#4933
MohamadJaara merged 6 commits into
developfrom
mo/fix/conversation-close-crash

Conversation

@MohamadJaara

@MohamadJaara MohamadJaara commented Jun 4, 2026

Copy link
Copy Markdown
Member

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

Summary

Fixes a crash when closing the New Conversation screen.

What was happening

When tapping the X button, the app navigates back to the conversation list.

During the screen exit animation, the New Conversation screen can still be composed for a short moment. At that point, the New Conversation graph was already removed from the navigation back stack, but the screen tried to look it up again.

That caused this crash:

No destination with route app/new_conversation is on the NavController's back stack

Fix

Keep the New Conversation parent back stack entry remembered for the lifetime of the screen composition, instead of looking it up again after navigation starts.

Testing

Manually

@MohamadJaara MohamadJaara changed the title fix: new conversation close crash fix: new conversation close crash [WPB-26127] Jun 4, 2026
@MohamadJaara MohamadJaara changed the title fix: new conversation close crash [WPB-26127] fix: new conversation close crash [WPB-26127] [WPB-26131] Jun 4, 2026
@MohamadJaara MohamadJaara force-pushed the mo/fix/conversation-close-crash branch from a34edcd to fd494bc Compare June 5, 2026 10:31
@MohamadJaara MohamadJaara requested a review from a team as a code owner June 5, 2026 10:31
@MohamadJaara MohamadJaara requested review from Garzas, emmaoke-w, sbakhtiarov, typfel and yamilmedina and removed request for a team June 5, 2026 10:31
@MohamadJaara MohamadJaara changed the base branch from mo/fix/metro-graph-handoff to develop June 5, 2026 10:31
@MohamadJaara MohamadJaara enabled auto-merge June 5, 2026 10:31
@codecov

codecov Bot commented Jun 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.28%. Comparing base (ed57150) to head (5df4fcd).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #4933   +/-   ##
========================================
  Coverage    49.28%   49.28%           
========================================
  Files          648      648           
  Lines        22910    22910           
  Branches      3503     3503           
========================================
  Hits         11291    11291           
  Misses       10572    10572           
  Partials      1047     1047           

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 ed57150...5df4fcd. Read the comment docs.

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

@sonarqubecloud

sonarqubecloud Bot commented Jun 8, 2026

Copy link
Copy Markdown

@MohamadJaara MohamadJaara added this pull request to the merge queue Jun 8, 2026
Merged via the queue into develop with commit 68ee5dc Jun 8, 2026
20 checks passed
@MohamadJaara MohamadJaara deleted the mo/fix/conversation-close-crash branch June 8, 2026 16:47
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.

4 participants