Fix GIF modal

This commit is contained in:
koyu 2023-03-29 08:36:14 +02:00 committed by Essem
parent 94c2fae695
commit 78f5368ad7
No known key found for this signature in database
GPG key ID: 7D497397CC3A2A8C

View file

@ -38,8 +38,6 @@ const mapDispatchToProps = dispatch => ({
submit: (file, alt) => dispatch(uploadCompose([file], alt)),
});
export default @connect(mapStateToProps, mapDispatchToProps)
@injectIntl
class GIFModal extends ImmutablePureComponent {
static propTypes = {
@ -59,7 +57,7 @@ class GIFModal extends ImmutablePureComponent {
return response.blob();
}).then(function(blob) {
const reader = new FileReader();
reader.readAsDataURL(blob);
reader.readAsDataURL(blob);
reader.onloadend = function() {
var dataUrl = reader.result;
const file = dataURLtoFile(dataUrl, 'tenor.mp4');
@ -95,3 +93,6 @@ class GIFModal extends ImmutablePureComponent {
}
}
export default connect(mapStateToProps, mapDispatchToProps)(GIFModal);