Skip to content

Commit

Permalink
Pass in nil for the passphrase in the EnableRecovery method
Browse files Browse the repository at this point in the history
The SDK always supported passphrases in addition to randomly generated
keys for the recovery subsystem, the bindings have now started to expose
this functionality as well.

Since the code-paths are the same for the passphrase based recovery
mechanism we just pass in nil and continue to test the recovery
subsystem using the randomly generated key.
  • Loading branch information
poljar committed Sep 27, 2024
1 parent 2ea24d0 commit 7ebe830
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/api/rust/rust.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func (c *RustClient) MustBackupKeys(t ct.TestLike) (recoveryKey string) {
var listener matrix_sdk_ffi.EnableRecoveryProgressListener = genericListener
e := c.FFIClient.Encryption()
defer e.Destroy()
recoveryKey, err := e.EnableRecovery(true, listener)
recoveryKey, err := e.EnableRecovery(true, nil, listener)
must.NotError(t, "Encryption.EnableRecovery", err)
for !genericListener.isClosed.Load() {
select {
Expand Down

0 comments on commit 7ebe830

Please sign in to comment.