stream-chat-angular 4.5.0 → 4.5.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.
@@ -19,7 +19,7 @@ import transliterate from '@stream-io/transliterate';
19
19
  import * as i8 from 'angular-mentions';
20
20
  import { MentionModule } from 'angular-mentions';
21
21
 
22
- const version = '4.5.0';
22
+ const version = '4.5.1';
23
23
 
24
24
  /**
25
25
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -950,6 +950,10 @@ class ChannelService {
950
950
  removeChannelsFromChannelList(cids) {
951
951
  var _a;
952
952
  const channels = this.channels.filter((c) => !cids.includes(c.cid || ''));
953
+ cids.forEach((cid) => {
954
+ var _a;
955
+ return void ((_a = this.chatClientService.chatClient.activeChannels[cid]) === null || _a === void 0 ? void 0 : _a.stopWatching());
956
+ });
953
957
  if (channels.length < this.channels.length) {
954
958
  this.channelsSubject.next(channels);
955
959
  if (cids.includes(((_a = this.activeChannelSubject.getValue()) === null || _a === void 0 ? void 0 : _a.cid) || '')) {