Skip to content

Commit 5d9301b

Browse files
committed
fix
1 parent 2eab88e commit 5d9301b

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

build/curve25519.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,14 @@ if (ENVIRONMENT_IS_NODE) {
5959
if (typeof module !== "undefined") {
6060
module["exports"] = Module;
6161
}
62-
process["on"]("uncaughtException", (function(ex) {
62+
/*process["on"]("uncaughtException", (function(ex) {
6363
if (!(ex instanceof ExitStatus)) {
6464
throw ex;
6565
}
6666
}));
6767
process["on"]("unhandledRejection", (function(reason, p) {
6868
process["exit"](1);
69-
}));
69+
}));*/
7070
Module["quit"] = (function(status) {
7171
process["exit"](status);
7272
});

src/group_cipher.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class GroupCipher {
2929
await this.senderKeyStore.storeSenderKey(this.senderKeyName, record);
3030
return senderKeyMessage.serialize();
3131
} catch (e) {
32-
console.log(e.stack);
32+
//console.log(e.stack);
3333
throw new Error('NoSessionException');
3434
}
3535
}
@@ -56,7 +56,7 @@ class GroupCipher {
5656

5757
return plaintext;
5858
} catch (e) {
59-
console.log(e.stack);
59+
//console.log(e.stack);
6060
throw new Error('InvalidMessageException');
6161
}
6262
}
@@ -90,7 +90,7 @@ class GroupCipher {
9090
const plaintext = crypto.decrypt(key, ciphertext, iv);
9191
return plaintext;
9292
} catch (e) {
93-
console.log(e.stack);
93+
//console.log(e.stack);
9494
throw new Error('InvalidMessageException');
9595
}
9696
}
@@ -102,7 +102,7 @@ class GroupCipher {
102102
const crypted = crypto.encrypt(key, Buffer.from(plaintext), iv);
103103
return crypted;
104104
} catch (e) {
105-
console.log(e.stack);
105+
//console.log(e.stack);
106106
throw new Error('InvalidMessageException');
107107
}
108108
}

src/group_session_builder.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class GroupSessionBuilder {
88
}
99

1010
async process(senderKeyName, senderKeyDistributionMessage) {
11-
console.log('GroupSessionBuilder process', senderKeyName, senderKeyDistributionMessage);
11+
//console.log('GroupSessionBuilder process', senderKeyName, senderKeyDistributionMessage);
1212
const senderKeyRecord = await this.senderKeyStore.loadSenderKey(senderKeyName);
1313
senderKeyRecord.addSenderKeyState(
1414
senderKeyDistributionMessage.getId(),
@@ -23,7 +23,7 @@ class GroupSessionBuilder {
2323
async create(senderKeyName) {
2424
try {
2525
const senderKeyRecord = await this.senderKeyStore.loadSenderKey(senderKeyName);
26-
console.log('GroupSessionBuilder create session', senderKeyName, senderKeyRecord);
26+
//console.log('GroupSessionBuilder create session', senderKeyName, senderKeyRecord);
2727

2828
if (senderKeyRecord.isEmpty()) {
2929
const keyId = keyhelper.generateSenderKeyId();
@@ -43,7 +43,7 @@ class GroupSessionBuilder {
4343
state.getSigningKeyPublic()
4444
);
4545
} catch (e) {
46-
console.log(e.stack);
46+
//console.log(e.stack);
4747
throw new Error(e);
4848
}
4949
}

src/session_cipher.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ class SessionCipher {
124124
type = 1; // normal
125125
body = result;
126126
}
127+
127128
return {
128129
type,
129130
body,

0 commit comments

Comments
 (0)