Skip to content

Commit 5dadc28

Browse files
author
Pedro Aim
committed
passing header and filekeys as well if email not encrypted
1 parent 547701b commit 5dadc28

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

email_mailbox/src/libs/signal.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,11 @@ const decryptEmail = async ({
3838
throw new Error(CONTENT_NOT_AVAILABLE);
3939
}
4040
if (typeof deviceId !== 'number' && typeof messageType !== 'number') {
41-
return { decryptedBody: body.body };
41+
return {
42+
decryptedBody: body.body,
43+
decryptedHeaders: body.headers,
44+
decryptedFileKeys: fileKeys
45+
};
4246
}
4347
const res = await aliceRequestWrapper(() => {
4448
return fetchDecryptBody({

0 commit comments

Comments
 (0)