diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NutzapGallery.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NutzapGallery.kt index 08bfa64b75..807e61b160 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NutzapGallery.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/note/NutzapGallery.kt @@ -45,7 +45,7 @@ import com.vitorpamplona.amethyst.ui.navigation.navs.INav import com.vitorpamplona.amethyst.ui.navigation.routes.routeFor import com.vitorpamplona.amethyst.ui.screen.loggedIn.AccountViewModel import com.vitorpamplona.amethyst.ui.stringRes -import com.vitorpamplona.amethyst.ui.theme.Size25dp +import com.vitorpamplona.amethyst.ui.theme.Size20dp import com.vitorpamplona.amethyst.ui.theme.Size35Modifier import com.vitorpamplona.amethyst.ui.theme.StdStartPadding import com.vitorpamplona.amethyst.ui.theme.WidthAuthorPictureModifier @@ -98,7 +98,7 @@ private fun RenderNutzapGalleryRow( Icon( imageVector = CustomHashTagIcons.Cashu, contentDescription = stringRes(R.string.nutzap), - modifier = Modifier.size(Size25dp).align(Alignment.TopEnd), + modifier = Modifier.size(Size20dp).align(Alignment.TopEnd), tint = Color.Unspecified, ) } diff --git a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt index 674424b645..35014b1745 100644 --- a/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt +++ b/amethyst/src/main/java/com/vitorpamplona/amethyst/ui/screen/loggedIn/AccountViewModel.kt @@ -943,19 +943,11 @@ class AccountViewModel( zappedEvent = zappedEvent, message = message, ) - // Success surface — without it, the popup closes the - // instant the user taps the chip and there's no visible - // change for ~1-2 seconds while the swap and publish - // round-trip. Users perceive that gap as "nothing - // happened" and re-tap (which then gets the success - // toast for the second swap…). A direct toast scoped to - // the wallet path (not lightning's `onProgress` bar, - // which doesn't fit a 1-tick async op) closes the loop. - val appContext = com.vitorpamplona.amethyst.Amethyst.instance.appContext - toastManager.toast( - stringRes(appContext, R.string.nutzap_sent_title), - appContext.resources.getQuantityString(R.plurals.nutzap_sent_amount, amountSats.toInt(), amountSats.toInt()), - ) + // No success toast — the kind:9321 round-trips through the + // cache, attaches to the target Note via addNutzap, and the + // reaction row's zap counter + the icon-highlight state both + // light up automatically. A toast on top would be redundant + // noise. } catch (e: Exception) { onError( stringRes(com.vitorpamplona.amethyst.Amethyst.instance.appContext, R.string.nutzap_failed_title), diff --git a/amethyst/src/main/res/values/strings.xml b/amethyst/src/main/res/values/strings.xml index e1e78d7cf5..a735fa370b 100644 --- a/amethyst/src/main/res/values/strings.xml +++ b/amethyst/src/main/res/values/strings.xml @@ -2004,11 +2004,6 @@ Nutzap failed No recipient pubkey on the note Cannot build event reference - Cashu zap sent - - Sent %1$d sat via cashu - Sent %1$d sats via cashu - Create token Redeem Done