mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-03-18 05:41:56 +01:00
Fixes inability to go back after opening a nostr link from the web into Amethyst
This commit is contained in:
parent
97b88c7ceb
commit
d0633d07fa
@ -344,11 +344,11 @@ private fun NavigateIfIntentRequested(
|
||||
|
||||
val scope = rememberCoroutineScope()
|
||||
|
||||
DisposableEffect(activity) {
|
||||
DisposableEffect(nav, activity) {
|
||||
val consumer =
|
||||
Consumer<Intent> { intent ->
|
||||
val uri = intent?.data?.toString()
|
||||
if (!uri.isNullOrBlank()) {
|
||||
val uri = intent.data.toString()
|
||||
if (uri.isNotBlank()) {
|
||||
// navigation functions
|
||||
val newPage = uriToRoute(uri)
|
||||
|
||||
|
@ -111,7 +111,7 @@ class Nav(
|
||||
upTo: String,
|
||||
) {
|
||||
scope.launch {
|
||||
controller.navigate(route) { popUpTo(route) { inclusive = true } }
|
||||
controller.navigate(route) { popUpTo(upTo) { inclusive = true } }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user