Commit Graph

10553 Commits

Author SHA1 Message Date
levlam
52618cd448 Don't mark boostChat as constant. 2024-07-26 19:02:05 +03:00
levlam
b42009a433 Improve includes. 2024-07-25 14:51:50 +03:00
levlam
086f598411 Simplify download error handling. 2024-07-25 13:53:01 +03:00
levlam
8f7e9e116b Fix FILE_UPLOAD_RESTART. 2024-07-25 13:45:34 +03:00
levlam
2760db1fe4 Separate Download/Generate/Upload queries. 2024-07-24 16:10:13 +03:00
levlam
016663d807 Split FileManager::on_error_impl. 2024-07-24 15:49:16 +03:00
levlam
c9a92f64d6 Pass UserManager to get_text_entity_object. 2024-07-21 12:33:02 +03:00
levlam
3a7bdcbe5e Fix clang warnings. 2024-07-19 15:07:05 +03:00
levlam
306e3e355c Log ignored link preview documents. 2024-07-17 15:24:44 +03:00
levlam
6f3fd97877 Support media in "article" link previews. 2024-07-17 15:15:02 +03:00
levlam
f730830154 Rename loop() to try_stop(). 2024-07-16 14:18:29 +03:00
levlam
b46b108060 Call loop() in close_node. 2024-07-16 14:11:57 +03:00
levlam
fee576f702 Don't inherit FileFromBytes from FileLoaderActor. 2024-07-16 14:07:20 +03:00
levlam
e2c17af598 Make inherited FileHashUploader methods private. 2024-07-16 14:00:57 +03:00
levlam
0971292303 Remove update_downloaded_part from FileLoaderActor. 2024-07-16 13:58:48 +03:00
levlam
ee4794b343 Remove update_local_file_location from FileLoaderActor. 2024-07-15 14:44:36 +03:00
levlam
34e81dc272 Set stop_flag_ in FileiDownloader::on_error. 2024-07-14 00:16:53 +03:00
levlam
6564c43d58 Inline FileDownloader::init. 2024-07-13 23:29:19 +03:00
levlam
cd33aa82cc Merge FileLoader and FileDownloader. 2024-07-13 23:20:13 +03:00
levlam
284fe8be53 Remove some unused private fields. 2024-07-13 17:54:38 +03:00
levlam
826ba49660 Set stop_flag_ in FileUploader::on_error. 2024-07-13 10:53:57 +03:00
levlam
bb0eb35027 Inline FileLoader to FileUploader. 2024-07-13 00:59:24 +03:00
levlam
8fee0251f9 Remove unused start_part result value. 2024-07-13 00:48:47 +03:00
levlam
8755d39bc1 Simplify file_type_ update. 2024-07-13 00:42:33 +03:00
levlam
11ef2ec81a Remove unused duplicate private fields. 2024-07-12 23:46:50 +03:00
levlam
706a4336c9 Fix expected size for file uploader. 2024-07-12 21:26:52 +03:00
levlam
72019eab50 Add FileGenerateManager::QueryId. 2024-07-12 18:44:41 +03:00
levlam
755d9e6689 Minor improvements. 2024-07-12 18:21:23 +03:00
levlam
fd822a6372 Move out FileDownloadManager from FileLoadManager. 2024-07-12 18:15:44 +03:00
levlam
30e4e8cecb Add separate FileUploadManager. 2024-07-12 17:27:26 +03:00
levlam
82807ea456 Remove using QueryId = FileLoadManager::QueryId. 2024-07-12 16:24:07 +03:00
levlam
1d6e7f5b1c Don't inherit FileManager from FileLoadManager::Callback. 2024-07-12 16:21:35 +03:00
levlam
1c3d52eec6 Fix misprint. 2024-07-12 15:53:20 +03:00
levlam
b500efff91 Remove FileLoader::Callback. 2024-07-12 15:38:10 +03:00
levlam
c1629cf597 Remove FileLoader::get_callback(). 2024-07-12 15:35:49 +03:00
levlam
d5d9dabe7d Mark requests const if appropriate. 2024-07-12 05:48:51 +03:00
levlam
7609306ac8 Improve log messages. 2024-07-11 22:43:44 +03:00
levlam
989b504a7f Ignore photo for linkPreviewTypeSticker. 2024-07-09 14:09:32 +03:00
levlam
666071218a Use linkPreviewTypePhoto for animations with photo, but without animation. 2024-07-08 11:27:05 +03:00
levlam
cb16492741 Update version to 1.8.33. 2024-07-07 00:07:17 +03:00
levlam
bedbd6e007 Minor improvements. 2024-07-06 23:05:07 +03:00
levlam
203591d295 Fallback to linkPreviewTypePhoto if have photo for unknown embed. 2024-07-06 22:05:55 +03:00
levlam
e630978d30 Fix linkPreviewTypeStory. 2024-07-06 18:42:36 +03:00
levlam
35a4c54666 Use linkPreviewTypePhoto for videos without video. 2024-07-06 18:23:26 +03:00
levlam
95d4ea1856 Use linkPreviewTypePhoto for documents without document. 2024-07-06 18:14:20 +03:00
levlam
4896db62c1 Log unexpected photos in link preview. 2024-07-05 15:22:26 +03:00
levlam
0c7909d87e Add supergroupFullInfo.can_get_star_revenue_statistics. 2024-07-05 14:18:38 +03:00
levlam
e1951c5a84 Add linkPreviewTypeTheme.settings. 2024-07-05 14:10:36 +03:00
levlam
5ae0c78b89 Make ThemeSettings fields private. 2024-07-05 13:58:11 +03:00
levlam
91a0c1acf7 Add ThemeSettings::is_empty(). 2024-07-05 13:49:26 +03:00