increase max inline image size

This commit is contained in:
or-else
2020-11-10 14:47:58 -08:00
parent 5574085a01
commit 231635f86d
8 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -682,7 +682,6 @@ class MessagesView extends React.Component {
const height = this.state.imagePreview.height;
const fname = this.state.imagePreview.filename;
// Upload the image if it's too big to be send inband.
if (blob.size > MAX_INBAND_ATTACHMENT_SIZE) {
// Too large to send inband - uploading out of band and sending as a link.
const uploader = this.props.tinode.getLargeFileHelper();
@@ -722,6 +721,7 @@ class MessagesView extends React.Component {
return;
}
// Upload the image if it's too big to be send inband.
blobToBase64(blob, (blobMime, bits64) => {
let msg = Drafty.insertImage(null, 0, {
mime: blobMime,