Simplify sticker upload
This commit is contained in:
parent
47b0ee6135
commit
d608b81292
3 changed files with 7 additions and 17 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue