Include caption, width and height for outgoing attachments
This commit is contained in:
parent
2380f01e31
commit
00755072ee
1 changed files with 14 additions and 3 deletions
|
@ -176,15 +176,26 @@ MessageSender.prototype = {
|
||||||
proto.id = id;
|
proto.id = id;
|
||||||
proto.contentType = attachment.contentType;
|
proto.contentType = attachment.contentType;
|
||||||
proto.digest = result.digest;
|
proto.digest = result.digest;
|
||||||
if (attachment.fileName) {
|
|
||||||
proto.fileName = attachment.fileName;
|
|
||||||
}
|
|
||||||
if (attachment.size) {
|
if (attachment.size) {
|
||||||
proto.size = attachment.size;
|
proto.size = attachment.size;
|
||||||
}
|
}
|
||||||
|
if (attachment.fileName) {
|
||||||
|
proto.fileName = attachment.fileName;
|
||||||
|
}
|
||||||
if (attachment.flags) {
|
if (attachment.flags) {
|
||||||
proto.flags = attachment.flags;
|
proto.flags = attachment.flags;
|
||||||
}
|
}
|
||||||
|
if (attachment.width) {
|
||||||
|
proto.width = attachment.width;
|
||||||
|
}
|
||||||
|
if (attachment.height) {
|
||||||
|
proto.height = attachment.height;
|
||||||
|
}
|
||||||
|
if (attachment.caption) {
|
||||||
|
proto.caption = attachment.caption;
|
||||||
|
}
|
||||||
|
|
||||||
return proto;
|
return proto;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue