mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Allow GIFs larger than 6MB
This commit is contained in:
parent
73f8722c8d
commit
59d58aaab5
1 changed files with 6 additions and 0 deletions
|
@ -132,6 +132,12 @@
|
|||
return;
|
||||
}
|
||||
|
||||
const gifMaxSize = 25000 * 1024;
|
||||
if (file.type === 'image/gif' && file.size <= gifMaxSize) {
|
||||
resolve(file);
|
||||
return;
|
||||
}
|
||||
|
||||
if (file.type === 'image/gif') {
|
||||
reject(new Error('GIF is too large'));
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue