Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3400364
D8197.id27691.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D8197.id27691.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 7:06 AM (21 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2610748
Default Alt Text
D8197.id27691.diff (1 KB)
Attached To
Mode
D8197: [native] Set urlPrefix in Redux following successful registration
Attached
Detach File
Event Timeline
Log In to Comment