sceyt-chat-react-uikit 1.8.1-beta.13 → 1.8.1-beta.15

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.
package/index.js CHANGED
@@ -20398,7 +20398,8 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
20398
20398
  'Content-Type': blobLocal.type
20399
20399
  }
20400
20400
  }));
20401
- store.dispatch(setUpdateMessageAttachmentAC(uriLocal + "_original_image_url", filePath));
20401
+ var originalImageUrl = URL.createObjectURL(blobLocal);
20402
+ store.dispatch(setUpdateMessageAttachmentAC(uriLocal + "_original_image_url", originalImageUrl));
20402
20403
  });
20403
20404
  }
20404
20405
  }();
@@ -20452,7 +20453,10 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
20452
20453
  headers: {
20453
20454
  'Content-Type': blobLocal.type
20454
20455
  }
20455
- }))).then(function () {});
20456
+ }))).then(function () {
20457
+ var originalVideoUrl = URL.createObjectURL(blobLocal);
20458
+ store.dispatch(setUpdateMessageAttachmentAC(uriLocal + "_original_video_url", originalVideoUrl));
20459
+ });
20456
20460
  }
20457
20461
  }();
20458
20462
  return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
package/index.modern.js CHANGED
@@ -20397,7 +20397,8 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
20397
20397
  'Content-Type': blobLocal.type
20398
20398
  }
20399
20399
  }));
20400
- store.dispatch(setUpdateMessageAttachmentAC(uriLocal + "_original_image_url", filePath));
20400
+ var originalImageUrl = URL.createObjectURL(blobLocal);
20401
+ store.dispatch(setUpdateMessageAttachmentAC(uriLocal + "_original_image_url", originalImageUrl));
20401
20402
  });
20402
20403
  }
20403
20404
  }();
@@ -20451,7 +20452,10 @@ var handleUploadAttachments = function handleUploadAttachments(attachments, mess
20451
20452
  headers: {
20452
20453
  'Content-Type': blobLocal.type
20453
20454
  }
20454
- }))).then(function () {});
20455
+ }))).then(function () {
20456
+ var originalVideoUrl = URL.createObjectURL(blobLocal);
20457
+ store.dispatch(setUpdateMessageAttachmentAC(uriLocal + "_original_video_url", originalVideoUrl));
20458
+ });
20455
20459
  }
20456
20460
  }();
20457
20461
  return _temp3 && _temp3.then ? _temp3.then(_temp4) : _temp4(_temp3);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sceyt-chat-react-uikit",
3
- "version": "1.8.1-beta.13",
3
+ "version": "1.8.1-beta.15",
4
4
  "description": "Interactive React UI Components for Sceyt Chat.",
5
5
  "author": "Sceyt",
6
6
  "license": "MIT",