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.
@@ -1 +1 @@
1
- export declare const version = "4.39.4";
1
+ export declare const version = "4.39.5";
@@ -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.39.4';
359
+ var version = '4.39.5';
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.
@@ -808,7 +808,7 @@
808
808
  * @param channel
809
809
  */
810
810
  ChannelService.prototype.setAsActiveChannel = function (channel) {
811
- var _a, _b;
811
+ var _a, _b, _c;
812
812
  var prevActiveChannel = this.activeChannelSubject.getValue();
813
813
  if ((prevActiveChannel === null || prevActiveChannel === void 0 ? void 0 : prevActiveChannel.cid) === channel.cid) {
814
814
  return;
@@ -816,8 +816,7 @@
816
816
  this.stopWatchForActiveChannelEvents(prevActiveChannel);
817
817
  this.activeChannelLastReadMessageId =
818
818
  (_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;
819
- if (channel.state.latestMessages[channel.state.latestMessages.length - 1]
820
- .id === this.activeChannelLastReadMessageId) {
819
+ if (((_c = channel.state.latestMessages[channel.state.latestMessages.length - 1]) === null || _c === void 0 ? void 0 : _c.id) === this.activeChannelLastReadMessageId) {
821
820
  this.activeChannelLastReadMessageId = undefined;
822
821
  }
823
822
  this.watchForActiveChannelEvents(channel);