2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

WebDocument without size is allowed to load.

We load a WebDocument with an unknown size the same way as we load
normal photos with FileLocation, that doesn't contain size as well.

If the size information from WebDocument and upload.WebFile is
inconsistent we still fail to load the file.
This commit is contained in:
John Preston
2017-03-06 11:08:59 +03:00
parent 12ca6f3819
commit a7d0473a1a
3 changed files with 14 additions and 12 deletions

View File

@@ -126,7 +126,6 @@ enum {
MaxPhotoCaption = 200,
MaxMessageSize = 4096,
MaxHttpRedirects = 5, // when getting external data/images
WriteMapTimeout = 1000,
SaveDraftTimeout = 1000, // save draft after 1 secs of not changing text