matrix-org / matrix-js-sdk

Matrix Client-Server SDK for JavaScript
Apache License 2.0
1.55k stars 583 forks source link

Remove redundant hack for using the old pickle key in rust crypto #4282

Closed richvdh closed 3 months ago

richvdh commented 3 months ago

This was a temporary hack added in https://github.com/matrix-org/matrix-js-sdk/pull/4210 while clients were updated. This has now happened (https://github.com/matrix-org/matrix-react-sdk/pull/12543), so we can remove the hack and bring the behaviour in line with the documentation.

Notes: MatrixClient.initRustCrypto no longer uses the pickleKey as a passphrase for the rust crypto store. Populate storagePassword or storageKey to ensure the indexeddb store is encrypted.