Updated on 2026-08-14
This commit is contained in:
parent
20484baaf1
commit
bee4019e8b
49 changed files with 1256 additions and 72 deletions
|
|
@ -180,6 +180,7 @@ sealed class AppRoute(val path: String) : Route {
|
|||
path = when (addressBookOpenMode) {
|
||||
is AddressBookOpenMode.WithContactCreation ->
|
||||
"/address_book/${addressBookOpenMode.address}-${addressBookOpenMode.networkId}"
|
||||
is AddressBookOpenMode.ContactSelection -> "/address_book/select/${addressBookOpenMode.networkId}"
|
||||
AddressBookOpenMode.Default -> "/address_book"
|
||||
},
|
||||
)
|
||||
|
|
|
|||
|
|
@ -14,4 +14,13 @@ sealed interface AddressBookOpenMode {
|
|||
val address: String,
|
||||
val networkId: String,
|
||||
) : AddressBookOpenMode
|
||||
|
||||
/**
|
||||
* Opened from the Send flow to pick a recipient. The list is filtered by [networkId] (the current send network),
|
||||
* and the chosen contact's address is delivered back via `ContactSelectionTrigger` rather than navigation.
|
||||
*/
|
||||
@Serializable
|
||||
data class ContactSelection(
|
||||
val networkId: String,
|
||||
) : AddressBookOpenMode
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue