Skip to content

fix: navigating back to conversation list on home [WPB-23983][WPB-23980]#4644

Merged
MohamadJaara merged 2 commits intodevelopfrom
fix/navigate-back-on-home-not-close-app
Mar 11, 2026
Merged

fix: navigating back to conversation list on home [WPB-23983][WPB-23980]#4644
MohamadJaara merged 2 commits intodevelopfrom
fix/navigate-back-on-home-not-close-app

Conversation

@saleniuk
Copy link
Contributor

@saleniuk saleniuk commented Mar 11, 2026

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


PR Submission Checklist for internal contributors

  • The PR Title

    • conforms to the style of semantic commits messages¹ supported in Wire's Github Workflow²
    • contains a reference JIRA issue number like SQPIT-764
    • answers the question: If merged, this PR will: ... ³
  • The PR Description

    • is free of optional paragraphs and you have filled the relevant parts to the best of your ability

What's new in this PR?

Issues

Previously, when user navigated to another screen from home side menu, like settings or archive, and navigated back using system back button/gesture, then the app navigated back to the initial home screen which is the conversation list.
Now, it closes the whole app.

Causes (Optional)

After updating the compose destinations to v2, the graph used in "home" NavHost was changed to the root one and the home one became a subgraph of it, so popping back to the start screen stopped working properly for "home" NavHost since both graphs have a different start destination.

Solutions

Revert that change so that the "HomeGraph" becomes an separate one, as it should be, because it's used only for the "home" navigation (to replace the screen on "home" screen depending on current side menu selection).

Testing

How to Test

STR:

  • open the app
  • navigate to settings
  • use system back button/gesture to navigate back
    you should be navigated back to conversation list, the app should not close

PR Post Submission Checklist for internal contributors (Optional)

  • Wire's Github Workflow has automatically linked the PR to a JIRA issue

PR Post Merge Checklist for internal contributors

  • If any soft of configuration variable was introduced by this PR, it has been added to the relevant documents and the CI jobs have been updated.

References
  1. https://sparkbox.com/foundry/semantic_commit_messages
  2. https://github.com/wireapp/.github#usage
  3. E.g. feat(conversation-list): Sort conversations by most emojis in the title #SQPIT-764.

@saleniuk saleniuk changed the title fix: navigating back to conversation list on home [WPB-23980] fix: navigating back to conversation list on home [WPB-23983][WPB-23980] Mar 11, 2026
@saleniuk saleniuk requested review from Garzas and MohamadJaara March 11, 2026 11:34
@saleniuk saleniuk added this pull request to the merge queue Mar 11, 2026
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Mar 11, 2026
…on-home-not-close-app

# Conflicts:
#	app/src/main/kotlin/com/wire/android/ui/home/HomeScreen.kt
@sonarqubecloud
Copy link

@MohamadJaara MohamadJaara added this pull request to the merge queue Mar 11, 2026
Merged via the queue into develop with commit cd72c8c Mar 11, 2026
14 checks passed
@MohamadJaara MohamadJaara deleted the fix/navigate-back-on-home-not-close-app branch March 11, 2026 13:53
MohamadJaara pushed a commit that referenced this pull request Mar 12, 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.

4 participants