chore(git): merge pull request #235 from issues/234-stale-lnurl into staging
All checks were successful
Release to Staging / build_and_release (push) Successful in 1m6s
All checks were successful
Release to Staging / build_and_release (push) Successful in 1m6s
Reviewed-on: #235
This commit is contained in:
commit
2c2ab033d1
@ -1,3 +1,4 @@
|
||||
import { NDKSubscriptionCacheUsage } from '@nostr-dev-kit/ndk'
|
||||
import { Dots } from 'components/Spinner'
|
||||
import { ZapSplit } from 'components/Zap'
|
||||
import {
|
||||
@ -28,7 +29,9 @@ export const Zap = ({ addressable }: ZapProps) => {
|
||||
useBodyScrollDisable(isOpen)
|
||||
|
||||
useDidMount(() => {
|
||||
findMetadata(addressable.author)
|
||||
findMetadata(addressable.author, {
|
||||
cacheUsage: NDKSubscriptionCacheUsage.ONLY_RELAY
|
||||
})
|
||||
.then((res) => {
|
||||
setIsAvailable(typeof res?.lud16 !== 'undefined' && res.lud16 !== '')
|
||||
})
|
||||
|
@ -44,7 +44,7 @@ type Props = {
|
||||
export const ProfileSection = ({ pubkey }: Props) => {
|
||||
const { ndk } = useNDKContext()
|
||||
const profile = useProfile(pubkey, {
|
||||
cacheUsage: NDKSubscriptionCacheUsage.PARALLEL
|
||||
cacheUsage: NDKSubscriptionCacheUsage.ONLY_RELAY
|
||||
})
|
||||
const displayName =
|
||||
profile?.displayName || profile?.name || '[name not set up]'
|
||||
@ -151,7 +151,7 @@ type ProfileProps = {
|
||||
|
||||
export const Profile = ({ pubkey }: ProfileProps) => {
|
||||
const profile = useProfile(pubkey, {
|
||||
cacheUsage: NDKSubscriptionCacheUsage.PARALLEL
|
||||
cacheUsage: NDKSubscriptionCacheUsage.ONLY_RELAY
|
||||
})
|
||||
|
||||
const displayName =
|
||||
|
@ -1,4 +1,7 @@
|
||||
import { getRelayListForUser } from '@nostr-dev-kit/ndk'
|
||||
import {
|
||||
getRelayListForUser,
|
||||
NDKSubscriptionCacheUsage
|
||||
} from '@nostr-dev-kit/ndk'
|
||||
import { QRCodeSVG } from 'qrcode.react'
|
||||
import React, {
|
||||
Dispatch,
|
||||
@ -318,7 +321,9 @@ export const ZapPopUp = ({
|
||||
|
||||
setLoadingSpinnerDesc('Finding receiver metadata')
|
||||
|
||||
const receiverMetadata = await findMetadata(receiver)
|
||||
const receiverMetadata = await findMetadata(receiver, {
|
||||
cacheUsage: NDKSubscriptionCacheUsage.ONLY_RELAY
|
||||
})
|
||||
|
||||
if (!receiverMetadata?.lud16) {
|
||||
setIsLoading(false)
|
||||
@ -552,12 +557,16 @@ export const ZapSplit = ({
|
||||
const [invoices, setInvoices] = useState<Map<string, PaymentRequest>>()
|
||||
|
||||
useDidMount(async () => {
|
||||
findMetadata(pubkey).then((res) => {
|
||||
findMetadata(pubkey, {
|
||||
cacheUsage: NDKSubscriptionCacheUsage.ONLY_RELAY
|
||||
}).then((res) => {
|
||||
setAuthor(res)
|
||||
})
|
||||
|
||||
const adminNpubs = import.meta.env.VITE_ADMIN_NPUBS.split(',')
|
||||
findMetadata(adminNpubs[0]).then((res) => {
|
||||
findMetadata(adminNpubs[0], {
|
||||
cacheUsage: NDKSubscriptionCacheUsage.ONLY_RELAY
|
||||
}).then((res) => {
|
||||
setAdmin(res)
|
||||
})
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user