stream-chat-angular 4.34.0 → 4.34.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.
@@ -20,7 +20,7 @@ import transliterate from '@stream-io/transliterate';
20
20
  import * as i8 from 'angular-mentions';
21
21
  import { MentionModule } from 'angular-mentions';
22
22
 
23
- const version = '4.34.0';
23
+ const version = '4.34.1';
24
24
 
25
25
  /**
26
26
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -402,6 +402,9 @@ class ChannelService {
402
402
  */
403
403
  setAsActiveChannel(channel) {
404
404
  const prevActiveChannel = this.activeChannelSubject.getValue();
405
+ if ((prevActiveChannel === null || prevActiveChannel === void 0 ? void 0 : prevActiveChannel.cid) === channel.cid) {
406
+ return;
407
+ }
405
408
  this.stopWatchForActiveChannelEvents(prevActiveChannel);
406
409
  this.watchForActiveChannelEvents(channel);
407
410
  this.addChannel(channel);