stream-chat 8.40.4 → 8.40.5

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.
@@ -434,7 +434,7 @@ function addToMessageList(messages, newMessage) {
434
434
 
435
435
  if (messageIsNewest && addMessageToList) {
436
436
  return newMessages.concat(newMessage);
437
- } else if (newMessages.length === 0) {
437
+ } else if (messageIsNewest) {
438
438
  return newMessages;
439
439
  } // find the closest index to push the new message
440
440
 
@@ -7338,6 +7338,7 @@ var MARK_AS_READ_THROTTLE_TIMEOUT = 1000;
7338
7338
  var Thread = /*#__PURE__*/function () {
7339
7339
  function Thread(_ref) {
7340
7340
  var _this = this,
7341
+ _threadData$channel$m,
7341
7342
  _threadData$read,
7342
7343
  _threadData$reply_cou;
7343
7344
 
@@ -7893,9 +7894,7 @@ var Thread = /*#__PURE__*/function () {
7893
7894
  name: threadData.channel.name
7894
7895
  });
7895
7896
 
7896
- if (threadData.channel.members) {
7897
- _channel._hydrateMembers(threadData.channel.members);
7898
- }
7897
+ _channel._hydrateMembers((_threadData$channel$m = threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : []);
7899
7898
 
7900
7899
  this.state = new StateStore({
7901
7900
  active: false,
@@ -13331,7 +13330,7 @@ var StreamChat = /*#__PURE__*/function () {
13331
13330
  }, {
13332
13331
  key: "getUserAgent",
13333
13332
  value: function getUserAgent() {
13334
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.40.4");
13333
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.40.5");
13335
13334
  }
13336
13335
  }, {
13337
13336
  key: "setUserAgent",