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.es.js CHANGED
@@ -3642,6 +3642,7 @@ var Channel = /*#__PURE__*/function () {
3642
3642
  channelState.read[event.user.id] = {
3643
3643
  // because in client.ts the handleEvent call that flows to this sets this `event.received_at = new Date();`
3644
3644
  last_read: new Date(event.created_at),
3645
+ last_read_message_id: event.last_read_message_id,
3645
3646
  user: event.user,
3646
3647
  unread_messages: 0
3647
3648
  };
@@ -7936,7 +7937,7 @@ var StreamChat = /*#__PURE__*/function () {
7936
7937
  *
7937
7938
  * @param {BannedUsersFilters} filterConditions MongoDB style filter conditions
7938
7939
  * @param {BannedUsersSort} sort Sort options [{created_at: 1}].
7939
- * @param {BannedUsersPaginationOptions} options Option object, {limit: 10, offset:0}
7940
+ * @param {BannedUsersPaginationOptions} options Option object, {limit: 10, offset:0, exclude_expired_bans: true}
7940
7941
  *
7941
7942
  * @return {Promise<BannedUsersResponse<StreamChatGenerics>>} Ban Query Response
7942
7943
  */
@@ -10026,7 +10027,7 @@ var StreamChat = /*#__PURE__*/function () {
10026
10027
  switch (_context55.prev = _context55.next) {
10027
10028
  case 0:
10028
10029
  _context55.next = 2;
10029
- return this.get(this.baseURL + "/messages/".concat(messageID));
10030
+ return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)));
10030
10031
 
10031
10032
  case 2:
10032
10033
  return _context55.abrupt("return", _context55.sent);
@@ -10048,7 +10049,7 @@ var StreamChat = /*#__PURE__*/function () {
10048
10049
  }, {
10049
10050
  key: "getUserAgent",
10050
10051
  value: function getUserAgent() {
10051
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.10.1");
10052
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.11.0");
10052
10053
  }
10053
10054
  }, {
10054
10055
  key: "setUserAgent",