mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Restore incoming Signal decryption to fix 'Illegal wire type for field Message.Field .signalservice.Content.preKeyBundleMessage'
This commit is contained in:
parent
4a31c1640f
commit
5a428af873
1 changed files with 3 additions and 4 deletions
|
@ -693,10 +693,9 @@ MessageReceiver.prototype.extend({
|
|||
switch (envelope.type) {
|
||||
case textsecure.protobuf.Envelope.Type.CIPHERTEXT:
|
||||
window.log.info('message from', this.getEnvelopeId(envelope));
|
||||
promise = Promise.resolve(ciphertext.toArrayBuffer()); //;sessionCipher
|
||||
// TODO: restore decryption & unpadding (?)
|
||||
//.decryptWhisperMessage(ciphertext)
|
||||
//.then(this.unpad);
|
||||
promise = sessionCipher.decryptWhisperMessage(ciphertext);
|
||||
// TODO: restore unpadding (?)
|
||||
// .then(this.unpad);
|
||||
break;
|
||||
case textsecure.protobuf.Envelope.Type.FRIEND_REQUEST:
|
||||
window.log.info('friend-request message from ', envelope.source);
|
||||
|
|
Loading…
Reference in a new issue