HomePhabricator
Diffusion Comm 19818e9af187

[identity] Forbid registering multiple devices with the same ID

Description

[identity] Forbid registering multiple devices with the same ID

Summary:
Addresses ENG-8383.
We don't want to allow registering multiple users with the same device ID.
However, if given device ID belongs to the same user, we can allow that (details in Linear task).

Depends on D12349

Test Plan: Commtest: called register_user_device() twice with the same device keys. Second call failed due to Status::AlreadyExists

Reviewers: varun, will

Reviewed By: varun

Subscribers: ashoat, tomek

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

Details

Provenance
bartekAuthored on Jun 6 2024, 2:15 PM
Reviewer
varun
Differential Revision
D12350: [identity] Forbid registering multiple devices with the same ID
Parents
rCOMM9cc32873ab68: [lib] Introduce `MemberInfoSansPermissions`
Branches
Unknown
Tags
Unknown