|
|
@ -193,11 +193,8 @@ MessageSender.prototype = {
|
|
|
|
constructor: MessageSender,
|
|
|
|
constructor: MessageSender,
|
|
|
|
|
|
|
|
|
|
|
|
// makeAttachmentPointer :: Attachment -> Promise AttachmentPointerProto
|
|
|
|
// makeAttachmentPointer :: Attachment -> Promise AttachmentPointerProto
|
|
|
|
async makeAttachmentPointer(
|
|
|
|
async makeAttachmentPointer(attachment, publicServer = null, options = {}) {
|
|
|
|
attachment,
|
|
|
|
const { isRaw = false, isAvatar = false } = options;
|
|
|
|
publicServer = null,
|
|
|
|
|
|
|
|
{ isRaw = false, isAvatar = false }
|
|
|
|
|
|
|
|
) {
|
|
|
|
|
|
|
|
if (typeof attachment !== 'object' || attachment == null) {
|
|
|
|
if (typeof attachment !== 'object' || attachment == null) {
|
|
|
|
return Promise.resolve(undefined);
|
|
|
|
return Promise.resolve(undefined);
|
|
|
|
}
|
|
|
|
}
|
|
|
|