Skip to content
This repository was archived by the owner on Aug 5, 2021. It is now read-only.

Commit b65f69a

Browse files
committed
Fix direction in decrypt check
1 parent cee3b82 commit b65f69a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/libsignal-protocol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36193,7 +36193,7 @@ SessionCipher.prototype = {
3619336193
}
3619436194

3619536195
return this.storage.isTrustedIdentity(
36196-
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.SENDING
36196+
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.RECEIVING
3619736197
).then(function(trusted) {
3619836198
if (!trusted) {
3619936199
throw new Error('Identity key changed');

src/SessionCipher.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ SessionCipher.prototype = {
159159
}
160160

161161
return this.storage.isTrustedIdentity(
162-
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.SENDING
162+
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.RECEIVING
163163
).then(function(trusted) {
164164
if (!trusted) {
165165
throw new Error('Identity key changed');

0 commit comments

Comments
 (0)