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.js CHANGED
@@ -3693,6 +3693,13 @@ var Channel = /*#__PURE__*/function () {
3693
3693
  });
3694
3694
  });
3695
3695
  });
3696
+ channelState.pinnedMessages.forEach(function (_ref3) {
3697
+ var id = _ref3.id,
3698
+ createdAt = _ref3.created_at;
3699
+ if (truncatedAt > +createdAt) channelState.removePinnedMessage({
3700
+ id: id
3701
+ });
3702
+ });
3696
3703
  } else {
3697
3704
  channelState.clearMessages();
3698
3705
  }
@@ -9746,7 +9753,7 @@ var StreamChat = /*#__PURE__*/function () {
9746
9753
  }, {
9747
9754
  key: "getUserAgent",
9748
9755
  value: function getUserAgent() {
9749
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.1");
9756
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.2");
9750
9757
  }
9751
9758
  }, {
9752
9759
  key: "setUserAgent",