everyting works except upload progress
This commit is contained in:
@@ -695,8 +695,8 @@ class MessagesView extends React.Component {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
blobToBase64(blob, (bits) => {
|
blobToBase64(blob, (blobMime, bits64) => {
|
||||||
let msg = Drafty.insertImage(null, 0, mime, bits, width, height, fname, blob.size);
|
let msg = Drafty.insertImage(null, 0, blobMime, bits64, width, height, fname, blob.size);
|
||||||
if (caption) {
|
if (caption) {
|
||||||
msg = Drafty.appendLineBreak(msg);
|
msg = Drafty.appendLineBreak(msg);
|
||||||
msg = Drafty.append(msg, Drafty.init(caption));
|
msg = Drafty.append(msg, Drafty.init(caption));
|
||||||
@@ -717,7 +717,7 @@ class MessagesView extends React.Component {
|
|||||||
filename: fname,
|
filename: fname,
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
size: blob.length,
|
size: blob.size,
|
||||||
type: mime
|
type: mime
|
||||||
}});
|
}});
|
||||||
},
|
},
|
||||||
|
|||||||
+3
-3
@@ -3544,8 +3544,8 @@ class MessagesView extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Componen
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Object(_lib_blob_helpers_js__WEBPACK_IMPORTED_MODULE_14__["blobToBase64"])(blob, bits => {
|
Object(_lib_blob_helpers_js__WEBPACK_IMPORTED_MODULE_14__["blobToBase64"])(blob, (blobMime, bits64) => {
|
||||||
let msg = Drafty.insertImage(null, 0, mime, bits, width, height, fname, blob.size);
|
let msg = Drafty.insertImage(null, 0, blobMime, bits64, width, height, fname, blob.size);
|
||||||
|
|
||||||
if (caption) {
|
if (caption) {
|
||||||
msg = Drafty.appendLineBreak(msg);
|
msg = Drafty.appendLineBreak(msg);
|
||||||
@@ -3565,7 +3565,7 @@ class MessagesView extends react__WEBPACK_IMPORTED_MODULE_0___default.a.Componen
|
|||||||
filename: fname,
|
filename: fname,
|
||||||
width: width,
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
size: blob.length,
|
size: blob.size,
|
||||||
type: mime
|
type: mime
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+7
-7
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user