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