mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-09-28 21:53:01 +02:00
Moves the profile zap to threads
This commit is contained in:
@@ -1192,7 +1192,12 @@ class Account(
|
|||||||
|
|
||||||
LocalCache.consume(event, zappedNote) { it.response(signer) { onResponse(it) } }
|
LocalCache.consume(event, zappedNote) { it.response(signer) { onResponse(it) } }
|
||||||
|
|
||||||
Client.send(event, nip47.relayUri, wcListener.feedTypes) { wcListener.destroy() }
|
Client.send(
|
||||||
|
signedEvent = event,
|
||||||
|
relay = nip47.relayUri,
|
||||||
|
feedTypes = wcListener.feedTypes,
|
||||||
|
onDone = { wcListener.destroy() },
|
||||||
|
)
|
||||||
|
|
||||||
onSent()
|
onSent()
|
||||||
}
|
}
|
||||||
|
@@ -1195,7 +1195,7 @@ fun DisplayLNAddress(
|
|||||||
zapExpanded = false
|
zapExpanded = false
|
||||||
// pay directly
|
// pay directly
|
||||||
if (accountViewModel.account.hasWalletConnectSetup()) {
|
if (accountViewModel.account.hasWalletConnectSetup()) {
|
||||||
accountViewModel.account.sendZapPaymentRequestFor(it, null, onSent = {}) { response ->
|
accountViewModel.sendZapPaymentRequestFor(it, null, onSent = {}) { response ->
|
||||||
if (response is PayInvoiceSuccessResponse) {
|
if (response is PayInvoiceSuccessResponse) {
|
||||||
showInfoMessageDialog = stringRes(context, R.string.payment_successful)
|
showInfoMessageDialog = stringRes(context, R.string.payment_successful)
|
||||||
} else if (response is PayInvoiceErrorResponse) {
|
} else if (response is PayInvoiceErrorResponse) {
|
||||||
|
Reference in New Issue
Block a user