stream-chat-angular 4.39.1 → 4.39.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.
@@ -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.1';
23
+ const version = '4.39.2';
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.
@@ -1010,9 +1010,12 @@ class ChannelService {
1010
1010
  this.activeChannelSubscriptions.push(channel.on('message.new', (event) => {
1011
1011
  this.ngZone.run(() => {
1012
1012
  event.message && event.message.parent_id
1013
- ? this.activeThreadMessagesSubject.next([
1014
- ...channel.state.threads[event.message.parent_id],
1015
- ])
1013
+ ? event.message.parent_id ===
1014
+ this.activeParentMessageIdSubject.getValue()
1015
+ ? this.activeThreadMessagesSubject.next([
1016
+ ...channel.state.threads[event.message.parent_id],
1017
+ ])
1018
+ : null
1016
1019
  : this.activeChannelMessagesSubject.next([
1017
1020
  ...channel.state.messages,
1018
1021
  ]);