stream-chat-angular 4.5.0 → 4.5.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/assets/version.d.ts +1 -1
- package/bundles/stream-chat-angular.umd.js +10 -1
- package/bundles/stream-chat-angular.umd.js.map +1 -1
- package/esm2015/assets/version.js +2 -2
- package/esm2015/lib/channel.service.js +5 -1
- package/esm2015/lib/message-list/message-list.component.js +5 -1
- package/fesm2015/stream-chat-angular.js +9 -1
- 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.5.
|
|
1
|
+
export declare const version = "4.5.2";
|
|
@@ -355,7 +355,7 @@
|
|
|
355
355
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
var version = '4.5.
|
|
358
|
+
var version = '4.5.2';
|
|
359
359
|
|
|
360
360
|
/**
|
|
361
361
|
* The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
|
|
@@ -1551,8 +1551,13 @@
|
|
|
1551
1551
|
});
|
|
1552
1552
|
};
|
|
1553
1553
|
ChannelService.prototype.removeChannelsFromChannelList = function (cids) {
|
|
1554
|
+
var _this = this;
|
|
1554
1555
|
var _a;
|
|
1555
1556
|
var channels = this.channels.filter(function (c) { return !cids.includes(c.cid || ''); });
|
|
1557
|
+
cids.forEach(function (cid) {
|
|
1558
|
+
var _a;
|
|
1559
|
+
return void ((_a = _this.chatClientService.chatClient.activeChannels[cid]) === null || _a === void 0 ? void 0 : _a.stopWatching());
|
|
1560
|
+
});
|
|
1556
1561
|
if (channels.length < this.channels.length) {
|
|
1557
1562
|
this.channelsSubject.next(channels);
|
|
1558
1563
|
if (cids.includes(((_a = this.activeChannelSubject.getValue()) === null || _a === void 0 ? void 0 : _a.cid) || '')) {
|
|
@@ -5718,6 +5723,10 @@
|
|
|
5718
5723
|
this.scrollContainer.nativeElement.scrollTop = 0;
|
|
5719
5724
|
};
|
|
5720
5725
|
MessageListComponent.prototype.scrolled = function () {
|
|
5726
|
+
if (this.scrollContainer.nativeElement.scrollHeight ===
|
|
5727
|
+
this.scrollContainer.nativeElement.clientHeight) {
|
|
5728
|
+
return;
|
|
5729
|
+
}
|
|
5721
5730
|
var scrollPosition = this.getScrollPosition();
|
|
5722
5731
|
this.isUserScrolled =
|
|
5723
5732
|
(this.direction === 'bottom-to-top'
|