taxtank-core 0.29.33 → 0.29.34

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.
@@ -8052,7 +8052,8 @@
8052
8052
  return this.user.id === +localStorage.getItem('userId');
8053
8053
  };
8054
8054
  Property.prototype.isSold = function () {
8055
- return !!this.myShare.sale;
8055
+ var _a;
8056
+ return !!((_a = this.myShare) === null || _a === void 0 ? void 0 : _a.sale);
8056
8057
  };
8057
8058
  /**
8058
8059
  * Get initials of property. Required by Photoable interface
@@ -13631,8 +13632,8 @@
13631
13632
  this.listenCSE(Message, ['post'], function (messages) {
13632
13633
  var message = messages[0];
13633
13634
  var cache = _this.cache.toArray();
13634
- var updatedChat = cache.find(function (chat) { return chat.id === message.chat.id; });
13635
- updatedChat.updatedAt = message.createdAt;
13635
+ var updatedChat = cache.find(function (chat) { var _a; return (chat === null || chat === void 0 ? void 0 : chat.id) === ((_a = message.chat) === null || _a === void 0 ? void 0 : _a.id); });
13636
+ updatedChat.updatedAt = message === null || message === void 0 ? void 0 : message.createdAt;
13636
13637
  _this.handleResponse([updatedChat], 'put');
13637
13638
  });
13638
13639
  };
@@ -13743,8 +13744,9 @@
13743
13744
  MessageDocumentService.prototype.listenMessages = function () {
13744
13745
  var _this = this;
13745
13746
  this.listenCSE(Message, ['post'], function (messages) {
13747
+ var _a;
13746
13748
  var message = messages[0];
13747
- if (message.documents.length) {
13749
+ if ((_a = message.documents) === null || _a === void 0 ? void 0 : _a.length) {
13748
13750
  var array_1 = _this.cache.toArray();
13749
13751
  var documentsIds_1 = _this.cache.getIds();
13750
13752
  message.documents.forEach(function (document) {