stream-chat-angular 3.0.0-beta.11 → 3.0.0-beta.12

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 = "3.0.0-beta.11";
1
+ export declare const version = "3.0.0-beta.12";
@@ -354,7 +354,7 @@
354
354
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
355
355
  }
356
356
 
357
- var version = '3.0.0-beta.11';
357
+ var version = '3.0.0-beta.12';
358
358
 
359
359
  /**
360
360
  * The `NotificationService` can be used to add or remove notifications. By default the [`NotificationList`](../components/NotificationListComponent.mdx) component displays the currently active notifications.
@@ -1027,14 +1027,19 @@
1027
1027
  ChannelService.prototype.uploadAttachments = function (uploads) {
1028
1028
  return __awaiter(this, void 0, void 0, function () {
1029
1029
  var result, channel, uploadResults;
1030
+ var _this = this;
1030
1031
  return __generator(this, function (_h) {
1031
1032
  switch (_h.label) {
1032
1033
  case 0:
1033
1034
  result = [];
1034
1035
  channel = this.activeChannelSubject.getValue();
1035
1036
  return [4 /*yield*/, Promise.allSettled(uploads.map(function (upload) { return upload.type === 'image'
1036
- ? channel.sendImage(upload.file)
1037
- : channel.sendFile(upload.file); }))];
1037
+ ? _this.customImageUploadRequest
1038
+ ? _this.customImageUploadRequest(upload.file, channel)
1039
+ : channel.sendImage(upload.file)
1040
+ : _this.customFileUploadRequest
1041
+ ? _this.customFileUploadRequest(upload.file, channel)
1042
+ : channel.sendFile(upload.file); }))];
1038
1043
  case 1:
1039
1044
  uploadResults = _h.sent();
1040
1045
  uploadResults.forEach(function (uploadResult, i) {
@@ -1069,8 +1074,12 @@
1069
1074
  case 0:
1070
1075
  channel = this.activeChannelSubject.getValue();
1071
1076
  return [4 /*yield*/, (attachmentUpload.type === 'image'
1072
- ? channel.deleteImage(attachmentUpload.url)
1073
- : channel.deleteFile(attachmentUpload.url))];
1077
+ ? this.customImageDeleteRequest
1078
+ ? this.customImageDeleteRequest(attachmentUpload.url, channel)
1079
+ : channel.deleteImage(attachmentUpload.url)
1080
+ : this.customFileDeleteRequest
1081
+ ? this.customFileDeleteRequest(attachmentUpload.url, channel)
1082
+ : channel.deleteFile(attachmentUpload.url))];
1074
1083
  case 1:
1075
1084
  _h.sent();
1076
1085
  return [2 /*return*/];