mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Don't scale or compress gifs
If a gif is too large, it's too large. Fixes #196
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
},
|
||||
|
||||
autoScale: function(file) {
|
||||
if (file.type.split('/')[0] !== 'image') {
|
||||
if (file.type.split('/')[0] !== 'image' || file.type === 'image/gif') {
|
||||
// nothing to do
|
||||
return Promise.resolve(file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user