stream-chat 8.9.0 → 8.10.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 +9 -16
- 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 +9 -16
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +9 -16
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +9 -16
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts +3 -1
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/types.d.ts +3 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +3 -5
- package/src/channel_state.ts +3 -3
- package/src/types.ts +3 -0
package/dist/index.es.js
CHANGED
|
@@ -554,9 +554,9 @@ var ChannelState = /*#__PURE__*/function () {
|
|
|
554
554
|
var _m$pinned_at, _m$updated_at;
|
|
555
555
|
|
|
556
556
|
return _objectSpread$6(_objectSpread$6({}, m), {}, {
|
|
557
|
-
created_at: m.created_at.
|
|
558
|
-
pinned_at: (_m$pinned_at = m.pinned_at) === null || _m$pinned_at === void 0 ? void 0 : _m$pinned_at.
|
|
559
|
-
updated_at: (_m$updated_at = m.updated_at) === null || _m$updated_at === void 0 ? void 0 : _m$updated_at.
|
|
557
|
+
created_at: m.created_at.toISOString(),
|
|
558
|
+
pinned_at: (_m$pinned_at = m.pinned_at) === null || _m$pinned_at === void 0 ? void 0 : _m$pinned_at.toISOString(),
|
|
559
|
+
updated_at: (_m$updated_at = m.updated_at) === null || _m$updated_at === void 0 ? void 0 : _m$updated_at.toISOString()
|
|
560
560
|
});
|
|
561
561
|
};
|
|
562
562
|
|
|
@@ -1511,7 +1511,8 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1511
1511
|
* @param {Message<StreamChatGenerics>} message The Message object
|
|
1512
1512
|
* @param {boolean} [options.skip_enrich_url] Do not try to enrich the URLs within message
|
|
1513
1513
|
* @param {boolean} [options.skip_push] Skip sending push notifications
|
|
1514
|
-
* @param {boolean} [options.is_pending_message]
|
|
1514
|
+
* @param {boolean} [options.is_pending_message] DEPRECATED, please use `pending` instead.
|
|
1515
|
+
* @param {boolean} [options.pending] Make this message pending
|
|
1515
1516
|
* @param {Record<string,string>} [options.pending_message_metadata] Metadata for the pending message
|
|
1516
1517
|
* @param {boolean} [options.force_moderation] Apply force moderation for server-side requests
|
|
1517
1518
|
*
|
|
@@ -1527,26 +1528,18 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1527
1528
|
while (1) {
|
|
1528
1529
|
switch (_context2.prev = _context2.next) {
|
|
1529
1530
|
case 0:
|
|
1530
|
-
|
|
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
|
+
_context2.next = 2;
|
|
1539
1532
|
return this.getClient().post(this._channelURL() + '/message', _objectSpread$5({
|
|
1540
1533
|
message: message
|
|
1541
1534
|
}, options));
|
|
1542
1535
|
|
|
1543
|
-
case
|
|
1536
|
+
case 2:
|
|
1544
1537
|
sendMessageResponse = _context2.sent;
|
|
1545
1538
|
// Reset unreadCount to 0.
|
|
1546
1539
|
this.state.unreadCount = 0;
|
|
1547
1540
|
return _context2.abrupt("return", sendMessageResponse);
|
|
1548
1541
|
|
|
1549
|
-
case
|
|
1542
|
+
case 5:
|
|
1550
1543
|
case "end":
|
|
1551
1544
|
return _context2.stop();
|
|
1552
1545
|
}
|
|
@@ -10085,7 +10078,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10085
10078
|
}, {
|
|
10086
10079
|
key: "getUserAgent",
|
|
10087
10080
|
value: function getUserAgent() {
|
|
10088
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
10081
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.10.0");
|
|
10089
10082
|
}
|
|
10090
10083
|
}, {
|
|
10091
10084
|
key: "setUserAgent",
|