Always create a new session

This commit is contained in:
JC Brand 2018-08-31 18:44:24 +02:00
parent fc6982ce08
commit c2184ce8e1
2 changed files with 6 additions and 11 deletions

9
dist/converse.js vendored
View File

@ -71908,12 +71908,9 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
},
getSessionCipher(jid, id) {
if (!this.session_cipher) {
const _converse = this.__super__._converse,
address = new libsignal.SignalProtocolAddress(jid, id);
this.session_cipher = new window.libsignal.SessionCipher(_converse.omemo_store, address);
}
const _converse = this.__super__._converse,
address = new libsignal.SignalProtocolAddress(jid, id);
this.session_cipher = new window.libsignal.SessionCipher(_converse.omemo_store, address);
return this.session_cipher;
},

View File

@ -332,11 +332,9 @@
},
getSessionCipher (jid, id) {
if (!this.session_cipher) {
const { _converse } = this.__super__,
address = new libsignal.SignalProtocolAddress(jid, id);
this.session_cipher = new window.libsignal.SessionCipher(_converse.omemo_store, address);
}
const { _converse } = this.__super__,
address = new libsignal.SignalProtocolAddress(jid, id);
this.session_cipher = new window.libsignal.SessionCipher(_converse.omemo_store, address);
return this.session_cipher;
},