fixed pasting files and images

This commit is contained in:
or-else
2022-05-17 15:53:11 -07:00
parent a9e4f644a2
commit ec01ac2a50
6 changed files with 12 additions and 15 deletions
+2 -6
View File
@@ -104,12 +104,8 @@ class SendMessage extends React.PureComponent {
}
// FIXME: handle large files too.
if (filePasted(e,
(bits, mime, width, height, fname) => {
this.props.onAttachImage(mime, bits, width, height, fname);
},
(mime, bits, fname) => {
this.props.onAttachFile(mime, bits, fname);
},
file => { this.props.onAttachImage(file); },
file => { this.props.onAttachFile(file); },
this.props.onError)) {
// If a file was pasted, don't paste base64 data into input field.