Skip to content

Commit

Permalink
fwd isBlockKey
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Jan 20, 2025
1 parent ec59955 commit fabf434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,7 @@ function isSessionMoved (err) {

function getEncryptionOption (opts) {
// old style, supported for now but will go away
if (opts.encryptionKey) return { key: opts.encryptionKey }
if (opts.encryptionKey) return { key: opts.encryptionKey, isBlockKey: !!opts.isBlockKey }
if (!opts.encryption) return null
return b4a.isBuffer(opts.encryption) ? { key: opts.encryption } : opts.encryption
}

0 comments on commit fabf434

Please sign in to comment.