Fix http upload for servers without file size limit (#1512)

* Fix for ejabberd XMPP server 'infinity' http upload file size announce

	- fixes https://github.com/dino/dino/issues/1222

* Update 0363_http_file_upload.vala
This commit is contained in:
eerielili 2023-11-24 21:13:57 +00:00 committed by GitHub
parent cb78cec9e2
commit 85ea7e5008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -181,7 +181,9 @@ public class Module : XmppStreamModule {
} }
} }
if (max_file_size_str != null) return long.parse(max_file_size_str); if (max_file_size_str != null) return long.parse(max_file_size_str);
return -1;
// If there is no max-file-size node, there is no file size limit
return long.MAX;
} }
} }