update relay list

This commit is contained in:
Ren Amamiya
2023-04-25 15:24:11 +07:00
parent 95e4a27b69
commit 01dff9f3c8
29 changed files with 77 additions and 118 deletions

View File

@@ -2,7 +2,7 @@ import OnboardingLayout from '@components/layouts/onboarding';
import { RelayContext } from '@components/relaysProvider';
import { UserBase } from '@components/user/base';
import { DEFAULT_RELAYS } from '@stores/constants';
import { WRITEONLY_RELAYS } from '@stores/constants';
import { usePageContext } from '@utils/hooks/usePageContext';
import { fetchProfileMetadata } from '@utils/hooks/useProfileMetadata';
@@ -100,7 +100,7 @@ export function Page() {
event.id = getEventHash(event);
event.sig = signEvent(event, privkey);
// broadcast
pool.publish(event, DEFAULT_RELAYS);
pool.publish(event, WRITEONLY_RELAYS);
// redirect to splashscreen
navigate('/');
}, [pubkey, privkey, follows, pool]);