HomePhabricator
Diffusion Comm 7828ee2c148f

[keyserver][lib] Add ACKNOWLEDGE relationship action

Description

[keyserver][lib] Add ACKNOWLEDGE relationship action

Summary:
issue: ENG-7822
We need to fetch avatars for users the client has become aware of. We want the keyserver to remember that the users now know of each other and send an update to the second user.
So we will use the updates to obtain the avatar - we will call an endpoint that will update the relationshipt to "KNOW_OF", if there is no other undirected relationship. This endpoint will create updates if needed

Test Plan: Dispatched updateRelationship with relationshipActions.ACKNOWLEDGE and checked that both users get and update, and if the user has an avatar set, this avatar is sent in the update. Checked in the keyserver db that the users now have a KNOW_OF relationship

Reviewers: tomek, kamil

Reviewed By: tomek

Subscribers: ashoat

Differential Revision: https://phab.comm.dev/D12313

Details

Provenance
inkaAuthored on Jun 4 2024, 7:20 AM
Reviewer
tomek
Differential Revision
D12313: [keyserver][lib] Add ACKNOWLEDGE relationship action
Parents
rCOMM9b79fc3e29a8: [terraform] bump staging identity to 0.26
Branches
Unknown
Tags
Unknown