Skip to content

Commit 68c4457

Browse files
authored
Merge pull request #1491 from Hirobreak/missing-filekeys
passing header and filekeys as well if email not encrypted
2 parents 547701b + 5dadc28 commit 68c4457

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)