stream-chat 8.10.1 → 8.11.0

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
@@ -3670,6 +3670,7 @@ var Channel = /*#__PURE__*/function () {
3670
3670
  channelState.read[event.user.id] = {
3671
3671
  // because in client.ts the handleEvent call that flows to this sets this `event.received_at = new Date();`
3672
3672
  last_read: new Date(event.created_at),
3673
+ last_read_message_id: event.last_read_message_id,
3673
3674
  user: event.user,
3674
3675
  unread_messages: 0
3675
3676
  };
@@ -7964,7 +7965,7 @@ var StreamChat = /*#__PURE__*/function () {
7964
7965
  *
7965
7966
  * @param {BannedUsersFilters} filterConditions MongoDB style filter conditions
7966
7967
  * @param {BannedUsersSort} sort Sort options [{created_at: 1}].
7967
- * @param {BannedUsersPaginationOptions} options Option object, {limit: 10, offset:0}
7968
+ * @param {BannedUsersPaginationOptions} options Option object, {limit: 10, offset:0, exclude_expired_bans: true}
7968
7969
  *
7969
7970
  * @return {Promise<BannedUsersResponse<StreamChatGenerics>>} Ban Query Response
7970
7971
  */
@@ -10054,7 +10055,7 @@ var StreamChat = /*#__PURE__*/function () {
10054
10055
  switch (_context55.prev = _context55.next) {
10055
10056
  case 0:
10056
10057
  _context55.next = 2;
10057
- return this.get(this.baseURL + "/messages/".concat(messageID));
10058
+ return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)));
10058
10059
 
10059
10060
  case 2:
10060
10061
  return _context55.abrupt("return", _context55.sent);
@@ -10076,7 +10077,7 @@ var StreamChat = /*#__PURE__*/function () {
10076
10077
  }, {
10077
10078
  key: "getUserAgent",
10078
10079
  value: function getUserAgent() {
10079
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.10.1");
10080
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.11.0");
10080
10081
  }
10081
10082
  }, {
10082
10083
  key: "setUserAgent",