mirror of
https://github.com/eliasstepanik/filesystem-livesync.git
synced 2026-01-10 21:18:31 +00:00
Fixed:
- Note had been corrupted when the passphrase was empty.
This commit is contained in:
parent
b2ce4593b9
commit
24b3b7d8b1
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user