IIFE was interfering with trace
This commit is contained in:
parent
088cc3f3b4
commit
f534c3e45d
1 changed files with 7 additions and 9 deletions
|
|
@ -53,15 +53,13 @@ const deepDecryptIfNeeded = async (value, publicKey, epubForDecryption) => {
|
||||||
if (user.is.pub === publicKey || 'me' === publicKey) {
|
if (user.is.pub === publicKey || 'me' === publicKey) {
|
||||||
sec = getMySecret()
|
sec = getMySecret()
|
||||||
} else {
|
} else {
|
||||||
sec = await SEA.secret(
|
let epub = epubForDecryption
|
||||||
await (() => {
|
|
||||||
if (epubForDecryption) {
|
if (!epub) {
|
||||||
return epubForDecryption
|
epub = await pubToEpub(publicKey)
|
||||||
}
|
}
|
||||||
return pubToEpub(publicKey)
|
|
||||||
})(),
|
sec = await SEA.secret(epub, user._.sea)
|
||||||
user._.sea
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const decrypted = SEA.decrypt(value, sec)
|
const decrypted = SEA.decrypt(value, sec)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue