stream-chat 8.7.0 → 8.8.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.
@@ -1526,18 +1526,26 @@ var Channel = /*#__PURE__*/function () {
1526
1526
  while (1) {
1527
1527
  switch (_context2.prev = _context2.next) {
1528
1528
  case 0:
1529
- _context2.next = 2;
1529
+ if (!((options === null || options === void 0 ? void 0 : options.is_pending_message) !== undefined && !this._client._isUsingServerAuth())) {
1530
+ _context2.next = 2;
1531
+ break;
1532
+ }
1533
+
1534
+ throw new Error('Setting is_pending_message on client side is not supported');
1535
+
1536
+ case 2:
1537
+ _context2.next = 4;
1530
1538
  return this.getClient().post(this._channelURL() + '/message', _objectSpread$5({
1531
1539
  message: message
1532
1540
  }, options));
1533
1541
 
1534
- case 2:
1542
+ case 4:
1535
1543
  sendMessageResponse = _context2.sent;
1536
1544
  // Reset unreadCount to 0.
1537
1545
  this.state.unreadCount = 0;
1538
1546
  return _context2.abrupt("return", sendMessageResponse);
1539
1547
 
1540
- case 5:
1548
+ case 7:
1541
1549
  case "end":
1542
1550
  return _context2.stop();
1543
1551
  }
@@ -10046,7 +10054,7 @@ var StreamChat = /*#__PURE__*/function () {
10046
10054
  }, {
10047
10055
  key: "getUserAgent",
10048
10056
  value: function getUserAgent() {
10049
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.7.0");
10057
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.8.0");
10050
10058
  }
10051
10059
  }, {
10052
10060
  key: "setUserAgent",