Commit cfdef80
committed
fix: route full AppRoutes from chat to the outer nav host
Opening Phantom via Add Money inside a chat crashed with
IllegalStateException: Unknown screen Swap(...). FlowConversationScreen
handled Event.OpenScreen (non-sheet branch) via LocalCodeNavigator, which
inside a FlowHost is the inner navigator whose backstack only registers
ChatStep keys. Pushing a full AppRoute.Token.Swap onto it hit Navigation
3's fallback.
Route full AppRoutes to LocalOuterCodeNavigator instead, whose nav host
(appEntryProvider) registers Token.Swap/Info/Discovery. This also fixes
the same latent crash for Token.Discovery (ChatViewModel:709) and
Token.Info (MessengerScreen:124).
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>1 parent a09f8c1 commit cfdef80
1 file changed
Lines changed: 7 additions & 1 deletion
File tree
- apps/flipcash/features/messenger/src/main/kotlin/com/flipcash/app/messenger
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
65 | 69 | | |
66 | 70 | | |
67 | 71 | | |
| |||
92 | 96 | | |
93 | 97 | | |
94 | 98 | | |
95 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
96 | 102 | | |
97 | 103 | | |
98 | 104 | | |
| |||
0 commit comments