Update libsignal-protocol
This commit is contained in:
parent
5d1e770307
commit
26d97e621b
2 changed files with 2 additions and 2 deletions
|
@ -36314,7 +36314,7 @@ SessionCipher.prototype = {
|
||||||
var errors = [];
|
var errors = [];
|
||||||
return this.decryptWithSessionList(buffer, record.getSessions(), errors).then(function(result) {
|
return this.decryptWithSessionList(buffer, record.getSessions(), errors).then(function(result) {
|
||||||
return this.getRecord(address).then(function(record) {
|
return this.getRecord(address).then(function(record) {
|
||||||
if (result.session !== record.getOpenSession()) {
|
if (result.session.indexInfo.baseKey !== record.getOpenSession().indexInfo.baseKey) {
|
||||||
record.archiveCurrentState();
|
record.archiveCurrentState();
|
||||||
record.promoteState(result.session);
|
record.promoteState(result.session);
|
||||||
}
|
}
|
||||||
|
|
|
@ -36177,7 +36177,7 @@ SessionCipher.prototype = {
|
||||||
var errors = [];
|
var errors = [];
|
||||||
return this.decryptWithSessionList(buffer, record.getSessions(), errors).then(function(result) {
|
return this.decryptWithSessionList(buffer, record.getSessions(), errors).then(function(result) {
|
||||||
return this.getRecord(address).then(function(record) {
|
return this.getRecord(address).then(function(record) {
|
||||||
if (result.session !== record.getOpenSession()) {
|
if (result.session.indexInfo.baseKey !== record.getOpenSession().indexInfo.baseKey) {
|
||||||
record.archiveCurrentState();
|
record.archiveCurrentState();
|
||||||
record.promoteState(result.session);
|
record.promoteState(result.session);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue