everyting works except upload progress

This commit is contained in:
or-else
2020-10-17 19:05:31 -07:00
parent 796f16a003
commit 53c1f9fd0b
7 changed files with 17 additions and 17 deletions
+3 -3
View File
@@ -3544,8 +3544,8 @@ class MessagesView extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Componen
return;
}
Object(_lib_blob_helpers_js__WEBPACK_IMPORTED_MODULE_14__["blobToBase64"])(blob, bits => {
let msg = Drafty.insertImage(null, 0, mime, bits, width, height, fname, blob.size);
Object(_lib_blob_helpers_js__WEBPACK_IMPORTED_MODULE_14__["blobToBase64"])(blob, (blobMime, bits64) => {
let msg = Drafty.insertImage(null, 0, blobMime, bits64, width, height, fname, blob.size);
if (caption) {
msg = Drafty.appendLineBreak(msg);
@@ -3565,7 +3565,7 @@ class MessagesView extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Componen
filename: fname,
width: width,
height: height,
size: blob.length,
size: blob.size,
type: mime
}
});