Commit Graph

575 Commits

Author SHA1 Message Date
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
7153a17bd7 Don't check full local locations after loading file from database. 2022-06-24 14:59:42 +03:00
levlam
86c130a462 Minor fixes. 2022-06-21 02:55:53 +03:00
levlam
97d82e8edb Unlink files in FileLoadManager thread. 2022-06-16 13:32:14 +03:00
levlam
a1c3e09378 Log only unhandled file errors. 2022-06-16 13:07:31 +03:00
levlam
ed7b8f3a19 Move read_file_part to FileLoadManager thread. 2022-06-16 00:25:47 +03:00
levlam
62a97d8eb6 Simplify FileLoadManager::get_content. 2022-06-15 21:40:23 +03:00
levlam
388f3d0454 Lazily create file directories. 2022-06-15 16:23:46 +03:00
levlam
bdd70379f1 Simplify usage of create_from_temp and search_file. 2022-06-14 21:09:07 +03:00
levlam
09a39b4cb3 Ensure that parsed file size isn't negative. 2022-06-08 03:55:27 +03:00
levlam
848093c0c4 Check files of any size by hash. 2022-06-08 03:50:23 +03:00
levlam
bfcf52f87c Support MTPROTO_CLUSTER_INVALID error. 2022-06-06 20:36:15 +03:00
levlam
1e417ea212 Minor fixes. 2022-06-02 16:19:16 +03:00
levlam
0bc767f943 Pass max_resource_limit as parameter to ResourceManager. 2022-05-20 16:11:31 +03:00
levlam
0909f88bc3 Use int53 for file size in TDLib API. 2022-05-11 17:17:20 +03:00
levlam
81a8f832d3 Support 64-bit file size in server-side API. 2022-05-10 17:13:16 +03:00
levlam
ab6f2bd52f Remove logging of owner_dialog_id. 2022-05-31 16:19:08 +03:00
levlam
b4a643cffd Simplify file size error creation. 2022-05-31 15:12:40 +03:00
levlam
a282cce5d4 Add and use utf8_encode. 2022-05-31 15:08:16 +03:00
levlam
70050704d2 Remove unimplemented UploadCallback::on_progress. 2022-05-15 01:13:07 +03:00
levlam
4652292037 Use count instead of find if appropriate. 2022-05-01 23:03:06 +03:00
levlam
17275fe422 Output the number of objects to be freed on closing. 2022-04-25 20:52:44 +03:00
levlam
641ee080c1 Improve names of FileType::Secure. 2022-04-25 19:00:40 +03:00
levlam
a7bd57a793 Add checks for file_id/file_node_id overflow. 2022-04-25 17:33:31 +03:00
levlam
f76a9660ed Add can_reuse_remote_file to FileType.cpp. 2022-04-22 14:28:51 +03:00
levlam
f396cadc1a Add FileType::CallLog. 2022-04-21 22:34:26 +03:00
levlam
f6fd1f55cb Add and use get_file_type_class. 2022-04-21 22:14:12 +03:00
levlam
7fcd92a622 Move is_document_file_type to FileType.cpp. 2022-04-21 21:54:33 +03:00
levlam
497bc9006a Support setting files from secret chats as ringtones. 2022-04-15 14:37:01 +03:00
levlam
a16a5ec5e3 Support ringtone uploading. 2022-04-15 14:07:54 +03:00
levlam
42c6280321 Add addSavedNotificationSound. 2022-04-14 22:39:25 +03:00
levlam
3378131467 Add fileTypeNotificationSound. 2022-04-12 22:50:20 +03:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
9526d2aa21 Add class td_api::downloadedFileCounts. 2022-03-05 04:11:18 +03:00
levlam
a79ae236bc Add new updates about file downloads. 2022-03-05 03:14:31 +03:00
Arseny Smirnov
f1cf7bdc3f DownloadManager: remove file when local file is removed 2022-03-03 17:07:20 +01:00
levlam
fdd218de4a Reset updateFileDownloads after all downloaded messages are viewed. 2022-03-03 13:44:05 +03:00
levlam
c9bd5d3651 Minor improvements. 2022-03-01 18:01:50 +03:00
Arseny Smirnov
52abb9c5d5 DownloadManager create unique callback for each download 2022-03-01 15:34:51 +01:00
levlam
1f300c50e0 DownloadManager fixes. 2022-02-28 18:25:07 +03:00
Arseny Smirnov
08675f2df1 FileManager: support limit={KEEP,IGNORE}_DOWNLOAD_LIMIT in download method 2022-02-28 13:15:00 +01:00
levlam
a3cef00551 DownloadManager fixes and improvements. 2022-02-27 18:23:06 +03:00
Arseny Smirnov
f13598ec83 DownloadManager: WIP 2022-02-26 19:56:43 +01:00
Arseny Smirnov
d4a4f5fb5d Proxy some updates about file to DownloadManger. 2022-02-25 23:17:30 +01:00
levlam
0fb84181ec Add mkv to the list of allowed video extensions. 2022-02-17 15:14:49 +03:00
levlam
f5d8e4de83 Use table_remove_if. 2022-02-10 12:23:52 +03:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +03: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