stream-chat 8.1.1 → 8.1.2
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 +3 -3
- 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 +3 -3
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +3 -3
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/types/types.d.ts +0 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +2 -2
- package/src/types.ts +0 -1
package/dist/browser.es.js
CHANGED
|
@@ -3578,12 +3578,12 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3578
3578
|
break;
|
|
3579
3579
|
|
|
3580
3580
|
case 'message.read':
|
|
3581
|
-
if ((_event$user3 = event.user) !== null && _event$user3 !== void 0 && _event$user3.id) {
|
|
3581
|
+
if ((_event$user3 = event.user) !== null && _event$user3 !== void 0 && _event$user3.id && event.created_at) {
|
|
3582
3582
|
var _event$user4, _this$getClient$user;
|
|
3583
3583
|
|
|
3584
3584
|
channelState.read[event.user.id] = {
|
|
3585
3585
|
// because in client.ts the handleEvent call that flows to this sets this `event.received_at = new Date();`
|
|
3586
|
-
last_read: event.
|
|
3586
|
+
last_read: new Date(event.created_at),
|
|
3587
3587
|
user: event.user,
|
|
3588
3588
|
unread_messages: 0
|
|
3589
3589
|
};
|
|
@@ -9860,7 +9860,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9860
9860
|
}, {
|
|
9861
9861
|
key: "getUserAgent",
|
|
9862
9862
|
value: function getUserAgent() {
|
|
9863
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.1.
|
|
9863
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.1.2");
|
|
9864
9864
|
}
|
|
9865
9865
|
}, {
|
|
9866
9866
|
key: "setUserAgent",
|