From 17fdde0091829b6df4d2bd3ea7d7b9b127d16a24 Mon Sep 17 00:00:00 2001 From: lilia Date: Mon, 20 Feb 2017 18:07:05 -0800 Subject: [PATCH] Remove unused argument --- dist/libsignal-protocol.js | 4 ++-- src/SessionBuilder.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/libsignal-protocol.js b/dist/libsignal-protocol.js index d9762f5..b9d97c8 100644 --- a/dist/libsignal-protocol.js +++ b/dist/libsignal-protocol.js @@ -35872,7 +35872,7 @@ SessionBuilder.prototype = { } record.archiveCurrentState(); - record.updateSessionState(session, device.registrationId); + record.updateSessionState(session); return Promise.all([ this.storage.storeSession(address, record.serialize()), this.storage.saveIdentity(this.remoteAddress.getName(), session.indexInfo.remoteIdentityKey) @@ -35931,7 +35931,7 @@ SessionBuilder.prototype = { // Note that the session is not actually saved until the very // end of decryptWhisperMessage ... to ensure that the sender // actually holds the private keys for all reported pubkeys - record.updateSessionState(new_session, message.registrationId); + record.updateSessionState(new_session); return this.storage.saveIdentity(this.remoteAddress.getName(), message.identityKey.toArrayBuffer()).then(function() { return message.preKeyId; }); diff --git a/src/SessionBuilder.js b/src/SessionBuilder.js index d244288..1d596c5 100644 --- a/src/SessionBuilder.js +++ b/src/SessionBuilder.js @@ -48,7 +48,7 @@ SessionBuilder.prototype = { } record.archiveCurrentState(); - record.updateSessionState(session, device.registrationId); + record.updateSessionState(session); return Promise.all([ this.storage.storeSession(address, record.serialize()), this.storage.saveIdentity(this.remoteAddress.getName(), session.indexInfo.remoteIdentityKey) @@ -107,7 +107,7 @@ SessionBuilder.prototype = { // Note that the session is not actually saved until the very // end of decryptWhisperMessage ... to ensure that the sender // actually holds the private keys for all reported pubkeys - record.updateSessionState(new_session, message.registrationId); + record.updateSessionState(new_session); return this.storage.saveIdentity(this.remoteAddress.getName(), message.identityKey.toArrayBuffer()).then(function() { return message.preKeyId; });