stream-chat-angular 4.41.0 → 4.42.0

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.41.0';
23
+ const version = '4.42.0';
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.
@@ -658,7 +658,15 @@ class ChannelService {
658
658
  */
659
659
  deleteMessage(message) {
660
660
  return __awaiter(this, void 0, void 0, function* () {
661
- yield this.chatClientService.chatClient.deleteMessage(message.id);
661
+ if (this.messageDeleteConfirmationHandler) {
662
+ const result = yield this.messageDeleteConfirmationHandler(message);
663
+ if (result) {
664
+ yield this.chatClientService.chatClient.deleteMessage(message.id);
665
+ }
666
+ }
667
+ else {
668
+ yield this.chatClientService.chatClient.deleteMessage(message.id);
669
+ }
662
670
  });
663
671
  }
664
672
  /**