This code is web specific - so I think it's butter to implement it this way than adding this to IdentityServiceClient and mocking on native.
On native this method is used only from C++ level and is not exposed to JS.
Depends on D11109
Differential D11110
[web] implementing publishing prekeys to Identity kamil on Feb 19 2024, 8:28 AM. Authored by Tags None Referenced Files
Subscribers
Details This code is web specific - so I think it's butter to implement it this way than adding this to IdentityServiceClient and mocking on native. Depends on D11109 Call this method and check in staging DDB that prekeys were updated. await publishPrekeysToIdentity({ contentPrekey: 'test0', contentPrekeySignature: 'test1', notifPrekey: 'test2', notifPrekeySignature: 'test3', }, identityClient);
Diff Detail
Event TimelineComment Actions
I think there's a benefit to having everything in one place. It looks like registerUser only works on native, so we're already taking this approach in IdentityServiceClient.
Can you explain why we have a single call to handle both prekey rotation and publishing on native, but separate calls on web? Ideally we would have a unified approach across platforms. Separately, can you clarify if marking as published is handled separately? Comment Actions I think that keeping the solution as symmetrical as possible is a good idea. In this case, we should probably add it to IdentityServiceClient. If we can expose it also on native, it would be even better. And we should determine why there's an asymmetry of how the keys are uploaded and ideally make it consistent. Comment Actions Fair - if we already have the approach I will add it to IdentityServiceClient.
Native: Web:
It is - I'll add a diff later in the stack. The asymmetry comes from the fact that on native Identity RPC is used only from the C++ level so it's "hidden" from the JS level - on the web this is not possible, but for now I don't think there is any benefit with exposing it on native. It could change after ENG-6490 and ENG-6768 are done.
|