mirror of
https://github.com/narrrl/proton-sdk-rs.git
synced 2026-11-04 08:57:00 +01:00
A password reset gives the account new keys and locks the volume whose share was encrypted to the old ones. v2/shares/my-files still returns that share, so decrypting its passphrase failed with "missing key" on every call and a client could never reach My Files (proton-drive-linux#40). The web client handles this by listing volumes and creating a new one when no active regular volume is left. The locked volume stays restorable from the web. ensure_my_files now does the same when the share key fails to decrypt, and only once GET volumes confirms there is no active regular volume. Any other decryption failure is returned as before.