@vendasta/conversation 0.35.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1730,6 +1730,9 @@ class Media {
1730
1730
  static fromProto(proto) {
1731
1731
  let m = new Media();
1732
1732
  m = Object.assign(m, proto);
1733
+ if (proto.fileSize) {
1734
+ m.fileSize = parseInt(proto.fileSize, 10);
1735
+ }
1733
1736
  return m;
1734
1737
  }
1735
1738
  constructor(kwargs) {
@@ -1749,6 +1752,9 @@ class Media {
1749
1752
  if (typeof this.mediaFileName !== 'undefined') {
1750
1753
  toReturn['mediaFileName'] = this.mediaFileName;
1751
1754
  }
1755
+ if (typeof this.fileSize !== 'undefined') {
1756
+ toReturn['fileSize'] = this.fileSize;
1757
+ }
1752
1758
  return toReturn;
1753
1759
  }
1754
1760
  }