Page MenuHomePhabricator

D12925.id42981.diff
No OneTemporary

D12925.id42981.diff

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

Mime Type
text/plain
Expires
Sat, Dec 28, 8:23 PM (7 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2723916
Default Alt Text
D12925.id42981.diff (1 KB)

Event Timeline