Cleanup attachment attributes

Convert attachment ids from longs to strings, and byte buffers to
arrays.

// FREEBIE
This commit is contained in:
lilia 2017-04-18 11:12:39 -07:00
parent 6a8d0d1919
commit a256f17e19
3 changed files with 18 additions and 10 deletions

View file

@ -73,7 +73,7 @@
var mac = encryptedBin.slice(encryptedBin.byteLength - 32, encryptedBin.byteLength);
return verifyMAC(ivAndCiphertext, mac_key, mac, 32).then(function() {
if (theirDigest !== undefined) {
if (theirDigest !== null) {
return verifyDigest(encryptedBin, theirDigest);
}
}).then(function() {