Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3332783
D12925.id42981.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
D12925.id42981.diff
View Options
diff --git a/native/identity-service/identity-service-context-provider.react.js b/native/identity-service/identity-service-context-provider.react.js
--- a/native/identity-service/identity-service-context-provider.react.js
+++ b/native/identity-service/identity-service-context-provider.react.js
@@ -666,7 +666,7 @@
token,
userIDs,
);
- const identities = JSON.parse(result);
+ const { identities } = JSON.parse(result);
return assertWithValidator(identities, identitiesValidator);
},
versionSupported: () => {
diff --git a/native/native_rust_library/src/identity/find_user_identities.rs b/native/native_rust_library/src/identity/find_user_identities.rs
--- a/native/native_rust_library/src/identity/find_user_identities.rs
+++ b/native/native_rust_library/src/identity/find_user_identities.rs
@@ -34,8 +34,10 @@
}
#[derive(Serialize)]
+#[serde(rename_all = "camelCase")]
pub struct UserIdentities {
pub identities: HashMap<String, Identity>,
+ pub reserved_user_identifiers: HashMap<String, String>,
}
#[derive(Serialize)]
@@ -81,7 +83,10 @@
})
.collect();
- Ok(UserIdentities { identities })
+ Ok(UserIdentities {
+ identities,
+ reserved_user_identifiers: response.reserved_user_identifiers,
+ })
}
}
@@ -105,5 +110,5 @@
let user_identities = UserIdentities::try_from(response)?;
- Ok(serde_json::to_string(&user_identities.identities)?)
+ Ok(serde_json::to_string(&user_identities)?)
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 22, 1:37 AM (4 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559316
Default Alt Text
D12925.id42981.diff (1 KB)
Attached To
Mode
D12925: [native_rust_library] Extend findUserIdentities response
Attached
Detach File
Event Timeline
Log In to Comment