HomePhabricator
Diffusion Comm 30437f95dcbf

[identity] fix wallet account deletion bug

Description

[identity] fix wallet account deletion bug

Summary:
in D12335 i missed that get_username_and_password_file returns an error if the username attribute is missing, causing the whole RPC to fail. rather than modify that db method, i've decided to introduce a new one that just checks for the existence of OPAQUE registration data in a user item. the method returns an error if the lookup fails or if the user doesn't exist.

Resolves https://linear.app/comm/issue/ENG-8474/wallet-account-deletion-not-working

Test Plan: tested on staging -- confirmed that wallet account deletion now works

Reviewers: will, bartek

Reviewed By: will, bartek

Subscribers: ashoat, tomek

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

Details

Provenance
varunAuthored on Jun 20 2024, 11:04 AM
Reviewer
will
Differential Revision
D12515: [identity] fix wallet account deletion bug
Parents
rCOMMa62e9dbba688: [lib] mark prekeys as published after uploading to identity
Branches
Unknown
Tags
Unknown