stream-chat-angular 4.52.0 → 4.52.1
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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +9 -2
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +8 -2
- package/fesm2015/stream-chat-angular.js +8 -2
- package/fesm2015/stream-chat-angular.js.map +1 -1
- package/package.json +1 -1
- package/src/assets/version.ts +1 -1
package/assets/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "4.52.
|
|
1
|
+
export declare const version = "4.52.1";
|
|
@@ -356,7 +356,7 @@
|
|
|
356
356
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
var version = '4.52.
|
|
359
|
+
var version = '4.52.1';
|
|
360
360
|
|
|
361
361
|
/**
|
|
362
362
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -1780,6 +1780,7 @@
|
|
|
1780
1780
|
this.activeChannelSubscriptions.push(channel.on('reaction.updated', function (e) { return _this.messageReactionEventReceived(e); }));
|
|
1781
1781
|
this.activeChannelSubscriptions.push(channel.on('message.read', function (e) {
|
|
1782
1782
|
_this.ngZone.run(function () {
|
|
1783
|
+
var _h;
|
|
1783
1784
|
var latestMessage;
|
|
1784
1785
|
var messages;
|
|
1785
1786
|
_this.activeChannelMessages$.pipe(operators.first()).subscribe(function (m) {
|
|
@@ -1789,7 +1790,13 @@
|
|
|
1789
1790
|
if (!latestMessage || !e.user) {
|
|
1790
1791
|
return;
|
|
1791
1792
|
}
|
|
1792
|
-
latestMessage.readBy
|
|
1793
|
+
if (latestMessage.readBy) {
|
|
1794
|
+
latestMessage.readBy.splice(0, latestMessage.readBy.length);
|
|
1795
|
+
}
|
|
1796
|
+
else {
|
|
1797
|
+
latestMessage.readBy = [];
|
|
1798
|
+
}
|
|
1799
|
+
(_h = latestMessage.readBy).push.apply(_h, __spreadArray([], __read(getReadBy(latestMessage, channel))));
|
|
1793
1800
|
messages[messages.length - 1] = Object.assign({}, latestMessage);
|
|
1794
1801
|
_this.activeChannelMessagesSubject.next(__spreadArray([], __read(messages)));
|
|
1795
1802
|
});
|