Commit Graph

28 Commits

Author SHA1 Message Date
levlam
698b34709f Make DownloadManager::add_file asynchronous. 2022-07-23 17:11:25 +03:00
levlam
ec19eaad65 Call FileReferenceManager::get_file_search_text through DownloadManagerCallback. 2022-07-23 17:01:27 +03:00
levlam
061aac58db Make DownloadManager interface mostly asynchronous. 2022-07-23 16:41:03 +03:00
levlam
32bac7bd24 Move Promise to tdutils. 2022-06-27 13:30:18 +03:00
levlam
88ce431f39 Minor fixes. 2022-03-09 03:27:03 +03:00
levlam
89c6b72c8b Add FileCounters to download manager updates. 2022-03-06 03:20:18 +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
levlam
02c5fcd476 Don't add not downloaded files to recent downloads. 2022-03-03 21:11:34 +03:00
Arseny Smirnov
f1cf7bdc3f DownloadManager: remove file when local file is removed 2022-03-03 17:07:20 +01:00
levlam
6079b1a2b4 Asynchronously init DownloadManager. 2022-03-03 18:26:25 +03:00
levlam
fdd218de4a Reset updateFileDownloads after all downloaded messages are viewed. 2022-03-03 13:44:05 +03:00
levlam
b4301902fb Fix return type of get_file_size. 2022-03-02 18:29:49 +03:00
levlam
0ea961ebea Store and use expected file size in DownloadManager. 2022-03-02 15:23:15 +03:00
levlam
6da151a402 Set DownloadManager callback in constructor. 2022-03-02 13:56:04 +03:00
levlam
4d7afaedbb Improve DownloadManager initialization. 2022-03-01 23:09:40 +03:00
Arseny Smirnov
52abb9c5d5 DownloadManager create unique callback for each download 2022-03-01 15:34:51 +01:00
levlam
60c35f2192 Add get_file_view for DownloadManager::callback. 2022-03-01 15:54:04 +03:00
levlam
9ead1f0b34 Add td_api::updateFileRemovedFromDownloads. 2022-03-01 15:44:25 +03:00
levlam
6821ad4ba8 Add DownloadManager::add_file_info. 2022-02-28 19:09:41 +03:00
levlam
1f300c50e0 DownloadManager fixes. 2022-02-28 18:25:07 +03:00
levlam
a3cef00551 DownloadManager fixes and improvements. 2022-02-27 18:23:06 +03:00
Arseny Smirnov
b2ae91ef48 DownloadManager: WIP 2022-02-26 21:54:01 +01:00
Arseny Smirnov
f13598ec83 DownloadManager: WIP 2022-02-26 19:56:43 +01:00
Arseny Smirnov
da436915c1 implement DownloadManagerCallback 2022-02-25 16:06:57 +01:00
levlam
21a71e6441 Minor improvements. 2022-02-25 16:18:23 +03:00
Arseny Smirnov
97b2d3edd2 Td: proxy queries to DownloadManager 2022-02-25 13:11:30 +01:00
Arseny Smirnov
e2c7601c2b DownloadManager: draft 2022-02-23 19:34:26 +01:00