stream-chat 6.7.1 → 6.7.2

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.
package/dist/index.es.js CHANGED
@@ -3665,6 +3665,13 @@ var Channel = /*#__PURE__*/function () {
3665
3665
  });
3666
3666
  });
3667
3667
  });
3668
+ channelState.pinnedMessages.forEach(function (_ref3) {
3669
+ var id = _ref3.id,
3670
+ createdAt = _ref3.created_at;
3671
+ if (truncatedAt > +createdAt) channelState.removePinnedMessage({
3672
+ id: id
3673
+ });
3674
+ });
3668
3675
  } else {
3669
3676
  channelState.clearMessages();
3670
3677
  }
@@ -9718,7 +9725,7 @@ var StreamChat = /*#__PURE__*/function () {
9718
9725
  }, {
9719
9726
  key: "getUserAgent",
9720
9727
  value: function getUserAgent() {
9721
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.1");
9728
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.2");
9722
9729
  }
9723
9730
  }, {
9724
9731
  key: "setUserAgent",