diff --git a/libtextsecure/sendmessage.js b/libtextsecure/sendmessage.js index 0a71ec302..65e1a4966 100644 --- a/libtextsecure/sendmessage.js +++ b/libtextsecure/sendmessage.js @@ -193,11 +193,8 @@ MessageSender.prototype = { constructor: MessageSender, // makeAttachmentPointer :: Attachment -> Promise AttachmentPointerProto - async makeAttachmentPointer( - attachment, - publicServer = null, - { isRaw = false, isAvatar = false } - ) { + async makeAttachmentPointer(attachment, publicServer = null, options = {}) { + const { isRaw = false, isAvatar = false } = options; if (typeof attachment !== 'object' || attachment == null) { return Promise.resolve(undefined); }