Skip to content

Commit bf0570e

Browse files
committed
fix(groups): open Join Requests from Requests without the group profile under it
1 parent 1b7e643 commit bf0570e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • apps/flipcash/core/src/main/kotlin/com/flipcash/app/core

‎apps/flipcash/core/src/main/kotlin/com/flipcash/app/core/AppRoute.kt‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,13 +363,13 @@ sealed interface AppRoute : NavKey, Parcelable {
363363
// profile is the flow's root, so back returns to wherever the tap came from, and Open
364364
// Chat pushes the transcript on top of it.
365365
val openOnProfile: Boolean = false,
366-
// Open on a private group's Join Requests, over its profile so back lands there. Set by
367-
// the Requests screen's hosted rows.
366+
// Open on a private group's Join Requests as the flow's root, so back returns to the
367+
// Requests screen that set it, the way iOS does.
368368
val openOnJoinRequests: Boolean = false,
369369
) : Messaging, FlowRoute {
370370
override val initialStack: List<NavKey>
371371
get() = when {
372-
openOnJoinRequests -> listOf(ChatStep.GroupProfile, ChatStep.JoinRequests)
372+
openOnJoinRequests -> listOf(ChatStep.JoinRequests)
373373
openOnProfile -> listOf(ChatStep.GroupProfile)
374374
else -> listOf(ChatStep.Conversation)
375375
}

0 commit comments

Comments
 (0)