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