Skip to main content

store_account

Function store_account 

Source
async fn store_account(
    state: &AppState,
    account: &IdentityAccount,
    is_new: bool,
) -> Result<(), String>
Expand description

Step 3 (upsert DB). Compensate on failure for new accounts. identity_upsert_with_mirror, not plain identity_upsert: without the mirror write, an account created/updated after the fix shipped still had no fallback entry and reproduced the reported bug on its own next channel switch.