Fixed Alby NWC link

This commit is contained in:
Vitor Pamplona
2023-08-10 18:04:38 -04:00
parent ab2fff0194
commit 63fc4c570d
2 changed files with 3 additions and 2 deletions

View File

@@ -218,7 +218,7 @@ fun UpdateZapAmountDialog(onClose: () -> Unit, nip47uri: String? = null, account
val zapOptions = remember { zapTypes.map { it.second }.toImmutableList() } val zapOptions = remember { zapTypes.map { it.second }.toImmutableList() }
val zapOptionExplainers = remember { zapTypes.map { it.third }.toImmutableList() } val zapOptionExplainers = remember { zapTypes.map { it.third }.toImmutableList() }
LaunchedEffect(accountViewModel) { LaunchedEffect(accountViewModel, nip47uri) {
postViewModel.load() postViewModel.load()
if (nip47uri != null) { if (nip47uri != null) {
try { try {
@@ -384,6 +384,7 @@ fun UpdateZapAmountDialog(onClose: () -> Unit, nip47uri: String? = null, account
) )
IconButton(onClick = { IconButton(onClick = {
onClose()
runCatching { uri.openUri("https://nwc.getalby.com/apps/new?c=Amethyst") } runCatching { uri.openUri("https://nwc.getalby.com/apps/new?c=Amethyst") }
}) { }) {
Icon( Icon(

View File

@@ -54,7 +54,7 @@ fun HomeScreen(
nav: (String) -> Unit, nav: (String) -> Unit,
nip47: String? = null nip47: String? = null
) { ) {
var wantsToAddNip47 by remember { mutableStateOf(nip47) } var wantsToAddNip47 by remember(nip47) { mutableStateOf(nip47) }
val pagerState = rememberForeverPagerState(key = PagerStateKeys.HOME_SCREEN) val pagerState = rememberForeverPagerState(key = PagerStateKeys.HOME_SCREEN)