Skip to content

Instantly share code, notes, and snippets.

@vdhanan
Created March 12, 2024 20:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdhanan/1b93f4b98a04c1ff0c2c3c7074b4c625 to your computer and use it in GitHub Desktop.
Save vdhanan/1b93f4b98a04c1ff0c2c3c7074b4c625 to your computer and use it in GitHub Desktop.
test plan
diff --git a/native/identity-service/identity-service-context-provider.react.js b/native/identity-service/identity-service-context-provider.react.js
index 3aaf69c749..49c195df97 100644
--- a/native/identity-service/identity-service-context-provider.react.js
+++ b/native/identity-service/identity-service-context-provider.react.js
@@ -333,7 +333,13 @@ function IdentityServiceContextProvider(props: Props): React.Node {
commCoreModule.getUserPublicKey(),
commCoreModule.getOneTimeKeys(ONE_TIME_KEYS_NUMBER),
commCoreModule.validateAndGetPrekeys(),
+ commCoreModule.validateAndUpload(
+ '3951934A-7764-4D20-8507-0CB96838F8C6',
+ 'ZXx1ADCFxFm6P+UmVhX0A1tuqUoBU7lYjig/gMzSEJI',
+ '1fp7KiP75ZV5sFpE9rpUuy4FzP84ZLU9WG9ilMAHNrmxYzNynAPtXLStze8EFxhapkx1BvETvgBAC6TkodJ8WC6hjGkZSfHvQyVJrQ574R4gAcELWMVGhl8qOdkac8MB1ZRYckkcTzFiv7T5aQcIb3ZWlf6sIh1K87hfwT
fV09PudJ6pDhNntOBBv4ajgfQ11Wi9LI72FY9rYmTFBlbSO5Kk010sQ02KsgqDLbEluGYT3M0A3dVtLiGfzMfPOnPlUoOJwURyHLJJBPZqPoq5Cm83KmF50fWLgNCSiUqGztdNUmOaP8njdwQ734GSRzj57Rc94twGLrfgBO0RjrllhvFh5o
CKbM1KsMfVnjZ9DCslLaViMRsaoU5AHtTqdXK50Rmn9FbQVtdxOQv5Em8sErbxPqLm2jQxAT5NbQxQZi7iVJX6XjKyGakCDG4EN6KvBFqeExxYJzX2hu8M1Y1I1wMfvMI7MtoWlHCiDR78LyoEffIbCGSZoeAeA3HPR0eq',
+ ),
]);
+ console.log(prekeys);
const loginResult = await commRustModule.logInPasswordUser(
username,
password,
@@ -346,6 +352,8 @@ function IdentityServiceContextProvider(props: Props): React.Node {
getOneTimeKeyValues(contentOneTimeKeys),
getOneTimeKeyValues(notificationsOneTimeKeys),
);
+ console.log('success');
+
const { userID, accessToken: token } = JSON.parse(loginResult);
const identityAuthResult = { accessToken: token, userID, username };
diff --git a/services/identity/src/grpc_services/authenticated.rs b/services/identity/src/grpc_services/authenticated.rs
index 847102a3f3..eb4fae71e4 100644
--- a/services/identity/src/grpc_services/authenticated.rs
+++ b/services/identity/src/grpc_services/authenticated.rs
@@ -92,6 +92,9 @@ impl IdentityClientService for AuthenticatedService {
let message = request.into_inner();
debug!("Refreshing prekeys for user: {}", user_id);
+ debug!("keys: {:?}", message);
+
+ return Err(tonic::Status::aborted("temp"));
let content_keys = message
.new_content_prekeys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment