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.
package/dist/index.js CHANGED
@@ -1555,18 +1555,26 @@ var Channel = /*#__PURE__*/function () {
1555
1555
  while (1) {
1556
1556
  switch (_context2.prev = _context2.next) {
1557
1557
  case 0:
1558
- _context2.next = 2;
1558
+ if (!((options === null || options === void 0 ? void 0 : options.is_pending_message) !== undefined && !this._client._isUsingServerAuth())) {
1559
+ _context2.next = 2;
1560
+ break;
1561
+ }
1562
+
1563
+ throw new Error('Setting is_pending_message on client side is not supported');
1564
+
1565
+ case 2:
1566
+ _context2.next = 4;
1559
1567
  return this.getClient().post(this._channelURL() + '/message', _objectSpread$5({
1560
1568
  message: message
1561
1569
  }, options));
1562
1570
 
1563
- case 2:
1571
+ case 4:
1564
1572
  sendMessageResponse = _context2.sent;
1565
1573
  // Reset unreadCount to 0.
1566
1574
  this.state.unreadCount = 0;
1567
1575
  return _context2.abrupt("return", sendMessageResponse);
1568
1576
 
1569
- case 5:
1577
+ case 7:
1570
1578
  case "end":
1571
1579
  return _context2.stop();
1572
1580
  }
@@ -10077,7 +10085,7 @@ var StreamChat = /*#__PURE__*/function () {
10077
10085
  }, {
10078
10086
  key: "getUserAgent",
10079
10087
  value: function getUserAgent() {
10080
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.7.0");
10088
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.8.0");
10081
10089
  }
10082
10090
  }, {
10083
10091
  key: "setUserAgent",