Commit Graph

708 Commits

Author SHA1 Message Date
levlam
11c78406c3 Explicitly check returned errors. 2023-09-21 14:47:17 +03:00
levlam
0ada45c361 Fix video story network statistics. 2023-09-11 17:02:58 +03:00
levlam
61eeab055a Improve FileStats logging. 2023-09-11 16:56:21 +03:00
levlam
c3a985fade Always fix video story file type in scan_fs. 2023-09-11 16:38:41 +03:00
levlam
622762f6ef Move guess_file_type_by_path to FileType.cpp. 2023-09-11 16:34:00 +03:00
levlam
468f92d0e5 Always scan file database to get file statistics to fix file type of video stories. 2023-09-11 16:07:53 +03:00
levlam
6022b2ce77 Improve parameter names. 2023-09-11 15:55:46 +03:00
levlam
00258ccb4c Make call to should_restart_part safe. 2023-09-07 17:31:08 +03:00
levlam
049d84beed Always call fetch_result on the whole NetQueryPtr. 2023-09-02 22:39:26 +03:00
levlam
77baf0d770 Fetch result from NetQuery in AuthManager. 2023-09-02 02:47:06 +03:00
levlam
28961b7d0e Add more common.h includes. 2023-08-05 16:09:36 +03:00
levlam
35df6e3dfd Optimize FileManager::get_file_object by moving implementation of getters to FileNode. 2023-07-26 18:07:33 +03:00
levlam
e12d66af4c Cache remote_location. 2023-07-26 17:34:26 +03:00
levlam
bb1d0d244a Optimize FileView const methods. 2023-07-26 17:09:08 +03:00
levlam
2cf1722b5b Move get_persistent_file_id/get_unique_file_id to FileNode to speed up. 2023-07-26 16:57:32 +03:00
levlam
c920536260 Optimize FullRemoteFileLocation comparison operators. 2023-07-25 21:47:51 +03:00
levlam
70db527023 Optimize PhotoSizeSource comparison. 2023-07-25 20:31:45 +03:00
levlam
36ae033843 Improve logging. 2023-07-22 19:03:29 +03:00
levlam
2e78aea606 Add td_api::fileTypePhotoStory and td_api::fileTypeVideoStory. 2023-07-16 13:03:25 +03:00
levlam
a9712d7afa Use DelayDispatcher for video stories. 2023-07-12 20:41:44 +03:00
levlam
b9473decc2 Always list actor_id first in lambda capture. 2023-07-11 17:53:43 +03:00
levlam
c827eaab6f Support FILE_PART_INVALID errors for sendMedia. 2023-07-05 13:08:10 +03:00
levlam
ad193a389c Add FileManager::get_missing_file_parts. 2023-07-05 10:55:16 +03:00
levlam
e3e1eda011 Completely drop partial remote location if part 0 is missing. 2023-07-05 01:13:46 +03:00
levlam
bcf9ff7d43 Explicitly include telegram_api.h in cpp files. 2023-07-01 14:53:04 +03:00
levlam
2684df5f01 Support story reupload in sendStory. 2023-05-25 21:21:10 +03:00
levlam
b27b9caa89 Add FileType::VideoStory. 2023-05-25 14:19:54 +03:00
levlam
b88312dda1 Add FileType::PhotoStory. 2023-05-25 01:26:26 +03:00
levlam
e3256e7b4c Use td::append if possible. 2023-06-10 23:14:03 +03:00
levlam
0ebc404ec5 Move file_loader logging to DEBUG by default. 2023-05-31 14:44:17 +03:00
levlam
1ff0e66eb0 Drop ready_size when delete partial remote location. 2023-05-30 12:29:12 +03:00
levlam
dd7fe47db8 Add FileManager::copy_file_id. 2023-05-24 15:28:40 +03:00
levlam
f831357538 Make some constructors constexpr. 2023-05-21 13:21:49 +03:00
levlam
20b312b144 Don't replace "Request aborted" errors for files. 2023-05-17 13:52:47 +03:00
levlam
887b69ec0e Remove unused field. 2023-05-10 15:41:57 +03:00
levlam
de22159b7f Don't keep exact remote location for bots. 2023-05-10 15:29:38 +03:00
levlam
e00c66123a Reopen sessions after receiving MTPROTO_CLUSTER_INVALID. 2023-05-09 01:10:14 +03:00
levlam
c0911577f7 Use empty name for unused move constructor/assignment parameter. 2023-05-05 13:51:19 +03:00
levlam
fb4d0daa2f Improve names of some variables. 2023-04-03 01:24:43 +03:00
levlam
1ce9f9d27c Minor improvements. 2023-03-24 14:14:37 +03:00
levlam
0ffd1718be Fix partial location check. 2023-03-16 14:11:41 +03:00
levlam
d26b0f42e8 Fix condition. 2023-03-15 23:51:15 +03:00
levlam
969e239e56 Fix warning. 2023-03-15 15:32:00 +03:00
levlam
0dc9aac724 Add source to PhotoSizeSource::get_unique. 2023-03-15 00:18:34 +03:00
levlam
a4c7d25c69 Ignore invalid partial locations. 2023-03-14 23:56:23 +03:00
levlam
487ecfc87e Always restart upload when known file prefix decreases. 2023-03-14 22:35:08 +03:00
levlam
d132c3e50d Add Global::keep_media_order. 2023-03-14 01:48:32 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
835ee52491 Make TdParameters private in Global. 2023-03-13 19:47:38 +03:00
levlam
68336dbefc Add option "ignore_file_names". 2023-03-13 19:19:13 +03:00