stream-chat 8.14.0 → 8.14.1

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
@@ -6640,7 +6640,6 @@ var StreamChat = /*#__PURE__*/function () {
6640
6640
 
6641
6641
  for (var _channelID in refMap) {
6642
6642
  var _channel2 = _this.activeChannels[_channelID];
6643
- /** search the members and watchers and update as needed... */
6644
6643
 
6645
6644
  if (_channel2 !== null && _channel2 !== void 0 && _channel2.state) {
6646
6645
  if (_channel2.state.members[user.id]) {
@@ -6650,6 +6649,10 @@ var StreamChat = /*#__PURE__*/function () {
6650
6649
  if (_channel2.state.watchers[user.id]) {
6651
6650
  _channel2.state.watchers[user.id] = user;
6652
6651
  }
6652
+
6653
+ if (_channel2.state.read[user.id]) {
6654
+ _channel2.state.read[user.id].user = user;
6655
+ }
6653
6656
  }
6654
6657
  }
6655
6658
  });
@@ -10162,7 +10165,7 @@ var StreamChat = /*#__PURE__*/function () {
10162
10165
  }, {
10163
10166
  key: "getUserAgent",
10164
10167
  value: function getUserAgent() {
10165
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.14.0");
10168
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.14.1");
10166
10169
  }
10167
10170
  }, {
10168
10171
  key: "setUserAgent",