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