Simplify sticker upload

This commit is contained in:
Fedor Indutny 2022-12-15 13:47:38 -08:00 committed by GitHub
parent 47b0ee6135
commit d608b81292
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 17 deletions

View file

@ -700,9 +700,8 @@ export default class MessageSender {
const padded = this.getPaddedAttachment(data);
const key = getRandomBytes(64);
const iv = getRandomBytes(16);
const result = encryptAttachment(padded, key, iv);
const result = encryptAttachment(padded, key);
const id = await this.server.putAttachment(result.ciphertext);
const proto = new Proto.AttachmentPointer();