Skip to content

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

Open
MohamadJaara wants to merge 1 commit into
mo/fix/metro-graph-handofffrom
mo/fix/conversation-close-crash
Open

fix: new conversation close crash [WPB-26127] [WPB-26131]#4933
MohamadJaara wants to merge 1 commit into
mo/fix/metro-graph-handofffrom
mo/fix/conversation-close-crash

Conversation

@MohamadJaara
Copy link
Copy Markdown
Member

@MohamadJaara MohamadJaara commented Jun 4, 2026

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

@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 4, 2026

@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
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.

1 participant