stream-chat-angular 5.8.0 → 5.8.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.
@@ -21,7 +21,7 @@ import transliterate from '@stream-io/transliterate';
21
21
  import * as i7 from 'angular-mentions';
22
22
  import { MentionModule } from 'angular-mentions';
23
23
 
24
- const version = '5.8.0';
24
+ const version = '5.8.1';
25
25
 
26
26
  /**
27
27
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -869,11 +869,16 @@ class ChannelService {
869
869
  * @param message Mesage to be updated
870
870
  */
871
871
  async updateMessage(message) {
872
- let messageToUpdate = { ...message };
872
+ let messageToUpdate = {
873
+ ...message,
874
+ };
873
875
  delete messageToUpdate.i18n;
874
876
  if (this.beforeUpdateMessage) {
875
877
  messageToUpdate = await this.beforeUpdateMessage(messageToUpdate);
876
878
  }
879
+ if (messageToUpdate.readBy) {
880
+ delete messageToUpdate.readBy;
881
+ }
877
882
  if (message.moderation_details) {
878
883
  return this.resendMessage(message);
879
884
  }