Commit Graph

428 Commits

Author SHA1 Message Date
levlam
9334243a5d Unify conversion function names.
GitOrigin-RevId: 10def5544dfd6a94ff89b15441006d102b512439
2020-06-22 04:28:03 +03:00
levlam
32af19acfe Improve constant name.
GitOrigin-RevId: 650c2c1ef42bb4d31f4cd5094cca5d251cc6c28a
2020-06-22 02:27:58 +03:00
levlam
d75c6eff57 Add FileType.cpp.
GitOrigin-RevId: 8ed89c8f90d3d83d810bdaede43d839962fea6fe
2020-06-22 02:20:48 +03:00
levlam
d5b4c57993 Add inputMessageDocument.force_file.
GitOrigin-RevId: 7f2780ba7f333e5f8df9c28bab429b8b12eaf26c
2020-06-22 02:02:21 +03:00
levlam
2ed9cb3b75 Minor fixes.
GitOrigin-RevId: ce9058c2075281697cc41de2ab970dd11e189f77
2020-06-13 05:13:11 +03:00
Arseny Smirnov
541f15bd68 files: better debug message in 'Cycle in database' error
GitOrigin-RevId: 8817236d9a4a628468663c68f48f8990a2317f96
2020-06-09 17:04:47 +03:00
levlam
9c5c112733 Fix max file size checks.
GitOrigin-RevId: 04695d57d2e32db680308a45ca7adad2f87ebe11
2020-06-03 21:22:58 +03:00
levlam
6172ece619 Do not check size exceeding of downloaded file.
GitOrigin-RevId: e7a7ca59867328737fe63db6aa60398229bd85a1
2020-06-01 21:35:06 +03:00
levlam
280d6f6649 Fail download in case of error in on_download_ok.
GitOrigin-RevId: 20ab3d279d54c945bfe4d114e9980ff8b636f292
2020-06-01 20:48:18 +03:00
levlam
d5c6c51f15 First check existence of generate location in run_generate.
GitOrigin-RevId: e4a9ac3a7cef153bde854a058bcd81a371d58dd7
2020-05-24 21:35:47 +03:00
levlam
f2cb3afaef Increase maximum photo size for upload by hash.
GitOrigin-RevId: b7dbcaf4710d04b03fc8eaf1d0c1c51ad5224829
2020-05-07 18:37:49 +03:00
levlam
99ffc0c5da Add logging.
GitOrigin-RevId: 4e039d5973121b82dcf118ba34a6a5835b6f7502
2020-05-04 03:01:01 +03:00
levlam
c8f56c62d8 Do not try to reuse file_id without remote location.
GitOrigin-RevId: 2dd994de062d1f640982923e4a7970fd7bbda583
2020-05-04 16:01:35 +03:00
levlam
3175ed4c0a Minor fixes.
GitOrigin-RevId: e10945b585d067da0b6a532b9d9210aade7673d4
2020-04-30 22:21:42 +03:00
levlam
d26cf8f8a3 Add temporary "upload by hash" for photos.
GitOrigin-RevId: f2fca54bce80d3eb9a84a7f4f6326e98633417a5
2020-04-24 00:50:14 +03:00
levlam
8681b76de2 Minor fixes.
GitOrigin-RevId: b75bac1586ed36b91b7c2ab64c386f94f18d8539
2020-04-21 03:29:20 +03:00
levlam
87afb93b93 Fix some ID spelling.
GitOrigin-RevId: cdd8cdb93696c690cf7bdb9b2df175bb926a7510
2020-04-19 13:45:37 +03:00
levlam
cd7a9d7b3a Fix updating of last_successful_force_reupload_time_.
GitOrigin-RevId: c213f39ba0bb75d541f8c007cebb4dfa81de03fc
2020-04-11 03:56:19 +03:00
levlam
ba5e5f0ece Allow to reupload file again after successful merge.
GitOrigin-RevId: 46bc9d002f804fe6c39e1ba8844740141e0a6f9f
2020-04-10 03:43:35 +03:00
levlam
00a70b466d Do not add file source from self-destructing messages.
GitOrigin-RevId: 5ac703d188ec532a52efa8549ee8c7e63a78a78b
2020-04-09 18:43:27 +03:00
Arseny Smirnov
5c0be2f24f FileManager: trying to cancel upload/download in run_{upload,download} before any other checks
GitOrigin-RevId: 3df57338d0a0fcec3fb04a11ff21b090909c9c83
2020-04-09 12:53:00 +03:00
levlam
29c81b4252 Warn on DcId change only for server locations.
GitOrigin-RevId: 04f11a63d84882f7c1ccd15a79845b7482c6a451
2020-03-31 02:16:23 +03:00
levlam
05253ca35e Add td_api::setStickerSetThumbnail.
GitOrigin-RevId: 1083c307cf89744c4dcfa16f89eaec1d2660309f
2020-03-20 16:36:07 +03:00
levlam
c4023a3f9b Use KB instead of kB for 1024 bytes.
GitOrigin-RevId: 163ebf3f28f5e6f6710b3ff85bdfc21996c67acb
2020-03-20 03:20:07 +03:00
levlam
d06a786a16 Simplify NetQueryCreator and remove mtproto dependency on telegram_api.
GitOrigin-RevId: 2edfc9d6d80eab8716dfd3722f6aebe53dba1e47
2020-03-16 01:01:14 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
8d01251f8b Add NetQueryCreator::create_unauth.
GitOrigin-RevId: 79043a3662b0353f000f388b3ee2763abf49fe2d
2020-03-15 04:51:14 +03:00
levlam
c4c9e51157 Make all fields required in full NetQueryCreator methos.
GitOrigin-RevId: aa8ebb5cc46b9f3b7c0b606c012ace5fafe2bbf2
2020-03-15 04:15:54 +03:00
levlam
ad3c28932b Remove manual Gzip flag specification in query creation; support uploaded files pack.
GitOrigin-RevId: 46ddfc230182615517eac7b611a79284559bd694
2020-03-15 02:49:10 +03:00
levlam
f752f3fade Fix warning.
GitOrigin-RevId: e36b575836941252e7c91d6fcf9498d80af9977b
2020-03-03 16:21:46 +03:00
levlam
a1e93ebba5 Add optimizeStorage.return_deleted_file_statistics.
GitOrigin-RevId: f7533781027891624017c605b1d3ac3e91da5086
2020-03-02 11:59:47 +03:00
levlam
bd0621eeff Optimize adding new files to FileStats.
GitOrigin-RevId: bceb6a4540f45339fed92c1a83b19d1981634836
2020-03-02 02:55:08 +03:00
levlam
0b30530260 Minor file GC improvements.
GitOrigin-RevId: a14b6e219ad90537875108b3e42473bf33267855
2020-03-02 02:41:47 +03:00
levlam
9862652e14 Use the exact file size instead of the real file size in fast storage statistics on Windows, because the real file size is smaller then expected before the file is synced.
GitOrigin-RevId: 451231c899c1b6c6b80b46e2cb42bd3b94def0a5
2020-02-19 17:57:30 +03:00
levlam
e60cf58d68 Reget profile photo on LOCATION_INVALID.
GitOrigin-RevId: ca1b929d21537a403d1893bcb79c1a7a61694ad7
2020-01-27 14:39:19 +03:00
levlam
b9d1b80f6a Do not remove file reference from remote.id.
GitOrigin-RevId: 3c934cec452f4ca4147aa81711fcd0ac1fee964a
2020-01-16 05:09:25 +03:00
levlam
06eb99d4d0 Return back correct file_id version.
GitOrigin-RevId: 53572782a4f54512022ce8e065e546a850951302
2020-01-16 04:56:45 +03:00
levlam
cf019bb59c Clear invalid file references loaded from database.
GitOrigin-RevId: 12d060ea93146f62190d9fa97421a7931cf29b8d
2020-01-16 04:52:36 +03:00
levlam
89d7374272 Temporarily disable CDN if streaming is enabled.
GitOrigin-RevId: e6479f76a1a226d27268744421a904b4849edf17
2020-01-08 20:15:49 +03:00
levlam
a06f02b747 Fix misprint.
GitOrigin-RevId: e7bcfcd2ada1b78906d5e5f9228e920be2a00a8c
2020-01-06 18:02:42 +03:00
levlam
b88730f635 Better logging.
GitOrigin-RevId: d5aa21fee3d0f9af6fdec13df45c7352850b8b86
2020-01-06 17:54:16 +03:00
levlam
c8bf8fa5f7 Use real allocated file size in storage statistics.
GitOrigin-RevId: 6e5232700d8e97ba3ce0838c3bf7764541b6fd2a
2020-01-03 04:08:22 +03:00
levlam
db7573769f Update layer 107.
GitOrigin-RevId: c892d895c8d963e68ad8e3e2bdc9ec6279ea046b
2020-01-03 02:14:02 +03:00
levlam
37d354d3c4 Add more logging.
GitOrigin-RevId: a6b927c52e37c29fa62029d59fd96375af87b14e
2020-01-02 03:38:47 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
Arseny Smirnov
8045132040 Fix system time it it goes backwards
GitOrigin-RevId: 3992a79df98fb164f5a410e756aa9e87ea853c38
2019-12-24 19:51:41 +04:00
levlam
adb10460b2 Minor fixes.
GitOrigin-RevId: 0c678ad195683947355b63af5aff49875312b4a3
2019-12-23 20:48:30 +03:00
levlam
1a9fe6a40d Make FileManager::Query::Type enum class.
GitOrigin-RevId: 031229295e1d6e41e0569363d0262e7ce83832c4
2019-12-23 17:32:03 +03:00
levlam
03066d10c9 Do not store photo.id in file_unique_id.
GitOrigin-RevId: 51a888c863b90f220964444255c46c9ac5e91c2e
2019-12-23 04:32:02 +03:00
levlam
2714fbf1f8 Fix some preauthentication requests.
GitOrigin-RevId: 1bbbbef17b740140ae99c4972d569306f6ca52ac
2019-12-13 04:00:33 +03:00