Commit Graph

117 Commits

Author SHA1 Message Date
levlam
8085779cdc Update copyright year. 2022-01-01 03:35:39 +03:00
levlam
e52508bdc1 Add source to PhotoSizeSource::get_type. 2021-11-14 10:47:02 +03:00
levlam
b731414d42 Init some fields just in case. 2021-11-11 17:39:09 +03:00
levlam
00a349656d Unify td/telegram/include order. 2021-10-27 17:32:09 +03:00
levlam
318b782c25 Fix may_reload_photo. 2021-10-28 12:57:26 +03:00
levlam
c24501f2d9 Reduce "this" usages. 2021-10-23 21:17:00 +03:00
levlam
db7aa28bdf A lot more minor improvements. 2021-10-19 18:11:16 +03:00
levlam
d882e222a7 Make FileStats fields private. 2021-09-26 12:44:18 +03:00
levlam
07630feb8c Add td_api::getSuggestedFileName. 2021-07-24 07:19:22 +03:00
levlam
40c5d47717 Make inherited classes final if possible. 2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98 Use final instead of override. 2021-07-03 23:51:36 +03:00
levlam
4bb76a7b6f Update layer to 128. Remove photo volume_id/local_id. 2021-04-16 17:43:51 +03:00
levlam
15fe7f7a04 Rename suggested_name to suggested_path. 2021-01-26 02:39:48 +03:00
levlam
bff723436a Upload inported messages as small files. 2021-01-22 18:13:38 +03:00
levlam
6f38576467 Add FileManager::guess_file_type. 2021-01-22 15:17:56 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
6d23ea4aa9 Do not change download order after file merge.
GitOrigin-RevId: cb1327b7b78cd42cd873040acca328ed00dddb2b
2020-09-11 18:57:49 +03:00
levlam
405934676e Change file_id type in as_profile_photo.
GitOrigin-RevId: fe45d895b4781c942512d5c838d99449431440d3
2020-07-20 17:46:54 +03:00
levlam
040ce6c529 Move get_persistent_id to FileView.
GitOrigin-RevId: e56d5998c515c5d5e93d31f8922a677f08a17243
2020-07-06 18:31:26 +03:00
levlam
53d694a01c Fix get_actor_unsafe usages.
GitOrigin-RevId: f39aa2d0a2083842698337bb34457826c1951be6
2020-07-04 12:00:14 +03:00
levlam
c5cba87bf6 Improve user photo registration.
GitOrigin-RevId: 323513d5a30710bb8aabde9476b09be2eb8bd059
2020-06-27 21:59:10 +03:00
levlam
6172ece619 Do not check size exceeding of downloaded file.
GitOrigin-RevId: e7a7ca59867328737fe63db6aa60398229bd85a1
2020-06-01 21:35:06 +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
ba5e5f0ece Allow to reupload file again after successful merge.
GitOrigin-RevId: 46bc9d002f804fe6c39e1ba8844740141e0a6f9f
2020-04-10 03:43:35 +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
a06f02b747 Fix misprint.
GitOrigin-RevId: e7bcfcd2ada1b78906d5e5f9228e920be2a00a8c
2020-01-06 18:02:42 +03:00
levlam
c8bf8fa5f7 Use real allocated file size in storage statistics.
GitOrigin-RevId: 6e5232700d8e97ba3ce0838c3bf7764541b6fd2a
2020-01-03 04:08:22 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03: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
edd3bb94a4 Add td_api::remoteFile.unique_id.
GitOrigin-RevId: b6355e905d7268aefbb4dd2e951b15e12504ee54
2019-10-25 17:04:01 +03:00
levlam
c1a201fd7f Use main remote location for upload.
GitOrigin-RevId: 1a77b73bf73608e219cbf2a0d888f33b0c406a80
2019-11-17 22:41:28 +03:00
levlam
bda15f31e4 Do not try to force file reupload too often.
GitOrigin-RevId: 533e25add08f00daf06c1ce1e42a111c930ef41e
2019-11-16 20:09:27 +03:00
levlam
4d72f8c14b Minor fixes.
GitOrigin-RevId: cc03c7e7a507fab2308495ea23f8ef9630a8142f
2019-08-30 04:56:01 +03:00
Arseny Smirnov
24f31ad888 FileManager: download big files with unknown size
GitOrigin-RevId: 3f4246f2d61127015138a32f2e93c8f932a81c50
2019-08-19 12:31:25 +03:00
levlam
84695437d3 Various fixes.
GitOrigin-RevId: 94d0df55495a08b5599c90f56dbe08ac3a3d65e5
2019-08-14 03:13:34 +03:00
levlam
84dba6cd8e Add Debian 10 to build instructions generator.
GitOrigin-RevId: 10a156b2d27bcda835e4177ef09d0d8b5c82c511
2019-08-01 21:47:59 +03:00
Arseny Smirnov
0517c8ff4a SecureManager: reupload file on SECURE_SECRET_INVALID error
GitOrigin-RevId: 93b2fb8a5b48511720efcceabd3055bc0c49409b
2019-08-01 18:26:43 +03:00
levlam
2fd851dfe2 Repair sticker set thumbnail if changed.
GitOrigin-RevId: 1b0e2e997338d85249e6eee877ab0483d9826342
2019-07-30 18:43:29 +03:00
Arseny Smirnov
089d73953c FileManager: reload photo on FILE_ID_INVALID
GitOrigin-RevId: defb6736befa35189253f8ac70342be81a607918
2019-07-30 17:42:36 +03:00
levlam
853c0986d9 Use static_cast to cast to bool.
GitOrigin-RevId: b62a74880cee8984ddf9607141b350f979000b4b
2019-06-18 03:21:55 +03:00
Arseny Smirnov
4b113527b2 Files: new remote (persistent) id version
GitOrigin-RevId: 9935066e24e9fff6c4b82b57b55ea2d517119b4b
2019-06-12 17:28:00 +03:00
levlam
85dd77b02c Initial background support.
GitOrigin-RevId: 14d3a1166f837069c55f40036a633295600524ca
2019-05-07 05:51:56 +03:00
levlam
ccfc5337f8 Add td_api::writeGeneratedFilePart.
GitOrigin-RevId: 2dfcba1d5f14dfd5e701ac02d3a8fc96090a00f2
2019-04-26 03:18:00 +03:00
levlam
be06d10b39 Add td_api::readFilePart.
GitOrigin-RevId: 8d44ecfa62dc39d288232248e6db5aad82870729
2019-04-26 01:03:31 +03:00
levlam
6a9a931f29 Fix mtime comparison.
GitOrigin-RevId: ba6d77667478bdbb6297b449929b4adcd55c12a1
2019-03-15 21:52:54 +03:00
levlam
4d5fb2902c Unify names of ParserT/StorerT classes.
GitOrigin-RevId: 69df5062e20cc87c0778e1b125ab46575c365377
2019-02-21 20:54:20 +03:00
levlam
5ef99afec7 Add messagePoll support.
GitOrigin-RevId: 41b93b2708285e4051fc01b856aa14a8c8c5c692
2019-02-19 16:45:32 +03:00
Arseny Smirnov
206fbc0686 downloadFile: add limit:int32
GitOrigin-RevId: 395d29e8383db5c54a3f85a555c4e9648546ef47
2019-02-18 22:08:05 +03:00