stream-chat 8.1.1 → 8.1.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.
@@ -3578,12 +3578,12 @@ var Channel = /*#__PURE__*/function () {
3578
3578
  break;
3579
3579
 
3580
3580
  case 'message.read':
3581
- if ((_event$user3 = event.user) !== null && _event$user3 !== void 0 && _event$user3.id) {
3581
+ if ((_event$user3 = event.user) !== null && _event$user3 !== void 0 && _event$user3.id && event.created_at) {
3582
3582
  var _event$user4, _this$getClient$user;
3583
3583
 
3584
3584
  channelState.read[event.user.id] = {
3585
3585
  // because in client.ts the handleEvent call that flows to this sets this `event.received_at = new Date();`
3586
- last_read: event.received_at,
3586
+ last_read: new Date(event.created_at),
3587
3587
  user: event.user,
3588
3588
  unread_messages: 0
3589
3589
  };
@@ -9860,7 +9860,7 @@ var StreamChat = /*#__PURE__*/function () {
9860
9860
  }, {
9861
9861
  key: "getUserAgent",
9862
9862
  value: function getUserAgent() {
9863
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.1.1");
9863
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.1.2");
9864
9864
  }
9865
9865
  }, {
9866
9866
  key: "setUserAgent",