stream-chat-angular 4.52.0 → 4.52.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.52.0';
23
+ const version = '4.52.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.
@@ -1200,7 +1200,13 @@ class ChannelService {
1200
1200
  if (!latestMessage || !e.user) {
1201
1201
  return;
1202
1202
  }
1203
- latestMessage.readBy = getReadBy(latestMessage, channel);
1203
+ if (latestMessage.readBy) {
1204
+ latestMessage.readBy.splice(0, latestMessage.readBy.length);
1205
+ }
1206
+ else {
1207
+ latestMessage.readBy = [];
1208
+ }
1209
+ latestMessage.readBy.push(...getReadBy(latestMessage, channel));
1204
1210
  messages[messages.length - 1] = Object.assign({}, latestMessage);
1205
1211
  this.activeChannelMessagesSubject.next([...messages]);
1206
1212
  });