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.
@@ -1 +1 @@
1
- export declare const version = "4.41.0";
1
+ export declare const version = "4.42.0";
@@ -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.41.0';
359
+ var version = '4.42.0';
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.
@@ -1160,12 +1160,25 @@
1160
1160
  */
1161
1161
  ChannelService.prototype.deleteMessage = function (message) {
1162
1162
  return __awaiter(this, void 0, void 0, function () {
1163
+ var result;
1163
1164
  return __generator(this, function (_h) {
1164
1165
  switch (_h.label) {
1165
- case 0: return [4 /*yield*/, this.chatClientService.chatClient.deleteMessage(message.id)];
1166
+ case 0:
1167
+ if (!this.messageDeleteConfirmationHandler) return [3 /*break*/, 4];
1168
+ return [4 /*yield*/, this.messageDeleteConfirmationHandler(message)];
1166
1169
  case 1:
1170
+ result = _h.sent();
1171
+ if (!result) return [3 /*break*/, 3];
1172
+ return [4 /*yield*/, this.chatClientService.chatClient.deleteMessage(message.id)];
1173
+ case 2:
1167
1174
  _h.sent();
1168
- return [2 /*return*/];
1175
+ _h.label = 3;
1176
+ case 3: return [3 /*break*/, 6];
1177
+ case 4: return [4 /*yield*/, this.chatClientService.chatClient.deleteMessage(message.id)];
1178
+ case 5:
1179
+ _h.sent();
1180
+ _h.label = 6;
1181
+ case 6: return [2 /*return*/];
1169
1182
  }
1170
1183
  });
1171
1184
  });