Browse Source

feat: 💨

imwald
codytseng 7 months ago
parent
commit
32ec3af729
  1. 2
      src/providers/NostrProvider/index.tsx

2
src/providers/NostrProvider/index.tsx

@ -2,6 +2,7 @@ import LoginDialog from '@/components/LoginDialog'
import { ApplicationDataKey, BIG_RELAY_URLS, ExtendedKind } from '@/constants' import { ApplicationDataKey, BIG_RELAY_URLS, ExtendedKind } from '@/constants'
import { import {
createFollowListDraftEvent, createFollowListDraftEvent,
createMuteListDraftEvent,
createRelayListDraftEvent, createRelayListDraftEvent,
createSeenNotificationsAtDraftEvent createSeenNotificationsAtDraftEvent
} from '@/lib/draft-event' } from '@/lib/draft-event'
@ -538,6 +539,7 @@ export function NostrProvider({ children }: { children: React.ReactNode }) {
const setupNewUser = async (signer: ISigner) => { const setupNewUser = async (signer: ISigner) => {
await Promise.allSettled([ await Promise.allSettled([
client.publishEvent(BIG_RELAY_URLS, await signer.signEvent(createFollowListDraftEvent([]))), client.publishEvent(BIG_RELAY_URLS, await signer.signEvent(createFollowListDraftEvent([]))),
client.publishEvent(BIG_RELAY_URLS, await signer.signEvent(createMuteListDraftEvent([]))),
client.publishEvent( client.publishEvent(
BIG_RELAY_URLS, BIG_RELAY_URLS,
await signer.signEvent( await signer.signEvent(

Loading…
Cancel
Save