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.js
CHANGED
|
@@ -578,9 +578,9 @@ var ChannelState = /*#__PURE__*/function () {
|
|
|
578
578
|
var _m$pinned_at, _m$updated_at;
|
|
579
579
|
|
|
580
580
|
return _objectSpread$6(_objectSpread$6({}, m), {}, {
|
|
581
|
-
created_at: m.created_at.
|
|
582
|
-
pinned_at: (_m$pinned_at = m.pinned_at) === null || _m$pinned_at === void 0 ? void 0 : _m$pinned_at.
|
|
583
|
-
updated_at: (_m$updated_at = m.updated_at) === null || _m$updated_at === void 0 ? void 0 : _m$updated_at.
|
|
581
|
+
created_at: m.created_at.toISOString(),
|
|
582
|
+
pinned_at: (_m$pinned_at = m.pinned_at) === null || _m$pinned_at === void 0 ? void 0 : _m$pinned_at.toISOString(),
|
|
583
|
+
updated_at: (_m$updated_at = m.updated_at) === null || _m$updated_at === void 0 ? void 0 : _m$updated_at.toISOString()
|
|
584
584
|
});
|
|
585
585
|
};
|
|
586
586
|
|
|
@@ -1535,7 +1535,8 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1535
1535
|
* @param {Message<StreamChatGenerics>} message The Message object
|
|
1536
1536
|
* @param {boolean} [options.skip_enrich_url] Do not try to enrich the URLs within message
|
|
1537
1537
|
* @param {boolean} [options.skip_push] Skip sending push notifications
|
|
1538
|
-
* @param {boolean} [options.is_pending_message]
|
|
1538
|
+
* @param {boolean} [options.is_pending_message] DEPRECATED, please use `pending` instead.
|
|
1539
|
+
* @param {boolean} [options.pending] Make this message pending
|
|
1539
1540
|
* @param {Record<string,string>} [options.pending_message_metadata] Metadata for the pending message
|
|
1540
1541
|
* @param {boolean} [options.force_moderation] Apply force moderation for server-side requests
|
|
1541
1542
|
*
|
|
@@ -1551,26 +1552,18 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1551
1552
|
while (1) {
|
|
1552
1553
|
switch (_context2.prev = _context2.next) {
|
|
1553
1554
|
case 0:
|
|
1554
|
-
|
|
1555
|
-
_context2.next = 2;
|
|
1556
|
-
break;
|
|
1557
|
-
}
|
|
1558
|
-
|
|
1559
|
-
throw new Error('Setting is_pending_message on client side is not supported');
|
|
1560
|
-
|
|
1561
|
-
case 2:
|
|
1562
|
-
_context2.next = 4;
|
|
1555
|
+
_context2.next = 2;
|
|
1563
1556
|
return this.getClient().post(this._channelURL() + '/message', _objectSpread$5({
|
|
1564
1557
|
message: message
|
|
1565
1558
|
}, options));
|
|
1566
1559
|
|
|
1567
|
-
case
|
|
1560
|
+
case 2:
|
|
1568
1561
|
sendMessageResponse = _context2.sent;
|
|
1569
1562
|
// Reset unreadCount to 0.
|
|
1570
1563
|
this.state.unreadCount = 0;
|
|
1571
1564
|
return _context2.abrupt("return", sendMessageResponse);
|
|
1572
1565
|
|
|
1573
|
-
case
|
|
1566
|
+
case 5:
|
|
1574
1567
|
case "end":
|
|
1575
1568
|
return _context2.stop();
|
|
1576
1569
|
}
|
|
@@ -10107,7 +10100,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10107
10100
|
}, {
|
|
10108
10101
|
key: "getUserAgent",
|
|
10109
10102
|
value: function getUserAgent() {
|
|
10110
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
10103
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.10.0");
|
|
10111
10104
|
}
|
|
10112
10105
|
}, {
|
|
10113
10106
|
key: "setUserAgent",
|