Throttle typing events, fix profile logging, fix group typing
This commit is contained in:
parent
a8fbd085e2
commit
3851bf351f
4 changed files with 14 additions and 11 deletions
|
@ -90,10 +90,10 @@
|
|||
|
||||
return verifyMAC(ivAndCiphertext, macKey, mac, 32)
|
||||
.then(() => {
|
||||
if (theirDigest !== null) {
|
||||
return verifyDigest(encryptedBin, theirDigest);
|
||||
if (!theirDigest) {
|
||||
throw new Error('Failure: Ask sender to update Signal and resend.');
|
||||
}
|
||||
return null;
|
||||
return verifyDigest(encryptedBin, theirDigest);
|
||||
})
|
||||
.then(() => decrypt(aesKey, ciphertext, iv));
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue