only verify the prekey id when there is no current session active

pull/183/head
sachaaaaa 7 years ago
parent 2755ff06d8
commit fdc51e88dd

@ -731,6 +731,7 @@ MessageReceiver.prototype.extend({
window.log.info('prekey message from', this.getEnvelopeId(envelope));
promise = captureActiveSession(sessionCipher)
.then(async () => {
if (!this.activeSessionBaseKey) {
try {
const buffer = dcodeIO.ByteBuffer.wrap(ciphertext);
await window.libloki.storage.verifyFriendRequestAcceptPreKey(
@ -741,6 +742,7 @@ MessageReceiver.prototype.extend({
await this.removeFromCache(envelope);
throw e;
}
}
return this.decryptPreKeyWhisperMessage(
ciphertext,
sessionCipher,

Loading…
Cancel
Save