Page MenuHomePhabricator

D13117.diff
No OneTemporary

D13117.diff

diff --git a/lib/components/farcaster-data-handler.react.js b/lib/components/farcaster-data-handler.react.js
--- a/lib/components/farcaster-data-handler.react.js
+++ b/lib/components/farcaster-data-handler.react.js
@@ -8,6 +8,7 @@
updateRelationshipsActionTypes,
} from '../actions/relationship-actions.js';
import { setSyncedMetadataEntryActionType } from '../actions/synced-metadata-actions.js';
+import { useFindUserIdentities } from '../actions/user-actions.js';
import { NeynarClientContext } from '../components/neynar-client-provider.react.js';
import { useIsLoggedInToIdentityAndAuthoritativeKeyserver } from '../hooks/account-hooks.js';
import { useLegacyAshoatKeyserverCall } from '../keyserver-conn/legacy-keyserver-call.js';
@@ -37,8 +38,8 @@
const identityServiceClient = React.useContext(IdentityClientContext);
const getFarcasterUsers =
identityServiceClient?.identityClient.getFarcasterUsers;
- const findUserIdentities =
- identityServiceClient?.identityClient.findUserIdentities;
+
+ const findUserIdentities = useFindUserIdentities();
const dispatch = useDispatch();
const dispatchActionPromise = useDispatchActionPromise();
@@ -118,7 +119,7 @@
]);
const handleUserStoreFIDs = React.useCallback(async () => {
- if (!loggedIn || !isActive || !findUserIdentities) {
+ if (!loggedIn || !isActive) {
return;
}
@@ -157,12 +158,7 @@
}
prevCanQueryHandleCurrentUserFIDRef.current = canQueryHandleCurrentUserFID;
- if (
- !canQueryHandleCurrentUserFID ||
- !findUserIdentities ||
- !currentUserID ||
- !neynarClient
- ) {
+ if (!canQueryHandleCurrentUserFID || !currentUserID || !neynarClient) {
return;
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 29, 10:42 PM (21 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2598470
Default Alt Text
D13117.diff (1 KB)

Event Timeline