stream-chat-angular 4.39.4 → 4.39.5

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.39.4';
23
+ const version = '4.39.5';
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.
@@ -403,7 +403,7 @@ class ChannelService {
403
403
  * @param channel
404
404
  */
405
405
  setAsActiveChannel(channel) {
406
- var _a, _b;
406
+ var _a, _b, _c;
407
407
  const prevActiveChannel = this.activeChannelSubject.getValue();
408
408
  if ((prevActiveChannel === null || prevActiveChannel === void 0 ? void 0 : prevActiveChannel.cid) === channel.cid) {
409
409
  return;
@@ -411,8 +411,7 @@ class ChannelService {
411
411
  this.stopWatchForActiveChannelEvents(prevActiveChannel);
412
412
  this.activeChannelLastReadMessageId =
413
413
  (_b = channel.state.read[((_a = this.chatClientService.chatClient.user) === null || _a === void 0 ? void 0 : _a.id) || '']) === null || _b === void 0 ? void 0 : _b.last_read_message_id;
414
- if (channel.state.latestMessages[channel.state.latestMessages.length - 1]
415
- .id === this.activeChannelLastReadMessageId) {
414
+ if (((_c = channel.state.latestMessages[channel.state.latestMessages.length - 1]) === null || _c === void 0 ? void 0 : _c.id) === this.activeChannelLastReadMessageId) {
416
415
  this.activeChannelLastReadMessageId = undefined;
417
416
  }
418
417
  this.watchForActiveChannelEvents(channel);