Add support for receiving attachments from CDN 2

This commit is contained in:
Ehren Kret 2020-04-17 15:51:39 -07:00 committed by Scott Nonnenberg
parent 4dc7631851
commit a0e9791623
16 changed files with 156 additions and 64 deletions

View file

@ -334,7 +334,7 @@ export default class MessageSender {
const id = await this.server.putAttachment(result.ciphertext);
const proto = new window.textsecure.protobuf.AttachmentPointer();
proto.id = id;
proto.cdnId = id;
proto.contentType = attachment.contentType;
proto.key = key;
proto.size = attachment.size;