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.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
|
-
|
|
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
|
|
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
|
|
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.
|
|
10088
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.8.0");
|
|
10081
10089
|
}
|
|
10082
10090
|
}, {
|
|
10083
10091
|
key: "setUserAgent",
|