diff --git a/native/account/registration/registration-server-call.js b/native/account/registration/registration-server-call.js --- a/native/account/registration/registration-server-call.js +++ b/native/account/registration/registration-server-call.js @@ -12,6 +12,7 @@ useServerCall, useDispatchActionPromise, } from 'lib/utils/action-utils.js'; +import { setURLPrefix } from 'lib/utils/url-utils.js'; import type { RegistrationServerCallInput, @@ -134,6 +135,7 @@ }, []); const siweServerCall = useSIWEServerCall(siweServerCallParams); + const dispatch = useDispatch(); const returnedFunc = React.useCallback( (input: RegistrationServerCallInput) => new Promise( @@ -151,6 +153,10 @@ urlPrefixOverride: keyserverURL, }); } + dispatch({ + type: setURLPrefix, + payload: keyserverURL, + }); setCurrentStep({ step: 'waiting_for_registration_call', avatarData, @@ -162,7 +168,7 @@ } }, ), - [currentStep, registerUsernameAccount, siweServerCall], + [currentStep, registerUsernameAccount, siweServerCall, dispatch], ); // STEP 2: SETTING AVATAR @@ -177,7 +183,6 @@ state => !!state.currentUserInfo && !state.currentUserInfo.anonymous, ); - const dispatch = useDispatch(); const avatarBeingSetRef = React.useRef(false); React.useEffect(() => { if (