Page MenuHomePhabricator

D8197.diff
No OneTemporary

D8197.diff

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 (

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 27, 9:39 PM (21 h, 5 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2591756
Default Alt Text
D8197.diff (1 KB)

Event Timeline