We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d343ae commit b85135fCopy full SHA for b85135f
src/lib/components/channel/MessageInput.svelte
@@ -412,9 +412,7 @@
412
let imageUrl = event.target.result;
413
414
// Compress the image if settings or config require it
415
- if ($settings?.imageCompression && $settings?.imageCompressionInChannels) {
416
- imageUrl = await compressImageHandler(imageUrl, $settings, $config);
417
- }
+ imageUrl = await compressImageHandler(imageUrl, $settings, $config);
418
419
const blob = await (await fetch(imageUrl)).blob();
420
const compressedFile = new File([blob], file.name, { type: file.type });
0 commit comments