mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Fix libsignal-protocol using wrong direction flag
// FREEBIE
This commit is contained in:
+1
-1
@@ -36330,7 +36330,7 @@ SessionCipher.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return this.storage.isTrustedIdentity(
|
return this.storage.isTrustedIdentity(
|
||||||
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.SENDING
|
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.RECEIVING
|
||||||
).then(function(trusted) {
|
).then(function(trusted) {
|
||||||
if (!trusted) {
|
if (!trusted) {
|
||||||
throw new Error('Identity key changed');
|
throw new Error('Identity key changed');
|
||||||
|
|||||||
@@ -36193,7 +36193,7 @@ SessionCipher.prototype = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return this.storage.isTrustedIdentity(
|
return this.storage.isTrustedIdentity(
|
||||||
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.SENDING
|
this.remoteAddress.getName(), util.toArrayBuffer(result.session.indexInfo.remoteIdentityKey), this.storage.Direction.RECEIVING
|
||||||
).then(function(trusted) {
|
).then(function(trusted) {
|
||||||
if (!trusted) {
|
if (!trusted) {
|
||||||
throw new Error('Identity key changed');
|
throw new Error('Identity key changed');
|
||||||
|
|||||||
Reference in New Issue
Block a user