Skip to content

Commit 804899c

Browse files
authored
Merge pull request #124 from JulianAdams4/decrypt-changes
Fix decrypt changes
2 parents 9b1363a + d83875d commit 804899c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

electron_app/src/DBManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ const createSignedPreKeyRecord = params => {
559559

560560
const getSignedPreKey = params => {
561561
return db
562-
.select('signedPrivKey', 'signedPubKey')
562+
.select('signedPreKeyPrivKey', 'signedPreKeyPubKey')
563563
.from(Table.SIGNEDPREKEYRECORD)
564564
.where(params);
565565
};

electron_app/src/utils/consts.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
const PROD_SOCKET_URL = 'ws://54.245.42.9:3001';
2-
const PROD_SERVER_URL = 'http://54.245.42.9:8000';
1+
const PROD_SOCKET_URL = 'ws://stage.socket.criptext.com';
2+
const PROD_SERVER_URL = 'https://stage.mail.criptext.com';
33

44
module.exports = {
55
PROD_SERVER_URL,

email_mailbox/src/utils/EmailUtils.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,17 @@ const formRecipients = recipientString => {
2323
};
2424

2525
export const formIncomingEmailFromData = async (data, deviceId) => {
26-
const bodyKey = data.bodyKey;
26+
const messageId = data.messageId;
2727
const recipientId = getRecipientIdFromEmailAddressTag(data.from);
2828
const { content, preview } = await getContentMessage(
29-
bodyKey,
29+
messageId,
3030
recipientId,
3131
deviceId
3232
);
3333
const email = {
3434
key: data.metadataKey,
3535
threadId: data.threadId,
36-
s3Key: bodyKey,
36+
s3Key: messageId,
3737
content,
3838
preview,
3939
subject: data.subject,

0 commit comments

Comments
 (0)