Commit Graph

134 Commits

Author SHA1 Message Date
levlam
8f433070df Minor fixes. 2022-08-14 15:04:08 +03:00
levlam
2be350b8fe Support multiple sizes for audio album covers. 2022-08-05 22:43:53 +03:00
levlam
779090f4dd Add more WaitFree* classes usages. 2022-08-04 14:48:10 +03:00
levlam
90b04eb3b6 Use WaitFreeVector in FileManager. 2022-08-02 14:45:22 +03:00
levlam
90df870adb Support audio thumbnail download. 2022-07-28 16:47:19 +03:00
levlam
3a275827e9 Add FileManager::is_remotely_generated_file and improve some names. 2022-07-28 15:59:57 +03:00
levlam
3afbce24b3 Disable getStorageStatisticsFast for bots to reduce disk usage in the main thread. 2022-07-23 23:50:28 +03:00
levlam
4ac8be8122 Check local location of files when adding them to download manager. 2022-07-20 16:46:55 +03:00
levlam
d75791481f Improve FileView::get_main_file_id() method name. 2022-07-03 12:01:08 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
0909f88bc3 Use int53 for file size in TDLib API. 2022-05-11 17:17:20 +03:00
levlam
70050704d2 Remove unimplemented UploadCallback::on_progress. 2022-05-15 01:13:07 +03:00
levlam
641ee080c1 Improve names of FileType::Secure. 2022-04-25 19:00:40 +03:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
Arseny Smirnov
08675f2df1 FileManager: support limit={KEEP,IGNORE}_DOWNLOAD_LIMIT in download method 2022-02-28 13:15:00 +01:00
levlam
bcc2adeb47 Fix includes and formatting. 2022-02-08 00:04:34 +03:00
Arseny Smirnov
86bceb2972 td: replace most of std::unordered_map usages to td::FlatHashMap 2022-02-07 21:21:31 +01:00
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