Merge branch 'vrtmrz:master' into master

This commit is contained in:
Spencer Heywood 2022-04-26 10:06:25 -06:00 committed by GitHub
commit bcdc877a1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ async function putDBEntry(note: LoadedEntry, passphrase: string, database: Pouch
leafid = "h:" + hashedPiece;
//have to make
const savePiece = await encrypt(piece, passphrase);
const savePiece = passphrase != "" ? await encrypt(piece, passphrase) : piece;
const d: EntryLeaf = {
_id: leafid,