Commit Graph

676 Commits

Author SHA1 Message Date
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
levlam
4b00266a5b Avoid a fatal error in PartManager. 2023-03-08 20:34:23 +03:00
levlam
17540f1c15 Fix type of size parameter in set_known_prefix. 2023-03-08 16:06:08 +03:00
levlam
1d476d15b8 Add more logging on fatal errors. 2023-03-08 14:11:35 +03:00
levlam
29f919415a Add function for logging the whole PartsManager state. 2023-03-08 14:08:17 +03:00
levlam
d157cd3bbb Use safe_promise in FileGenerateManager. 2023-03-08 12:56:49 +03:00
levlam
22fdc0258b Use "receive"/"have"/"loaded" instead of "got" and other log message improvements. 2023-02-26 14:22:31 +03:00
levlam
9b8ee4df3c Improve FileLoader comment. 2023-02-26 01:18:59 +03:00
levlam
5a39bb4952 Use error code returned by get_input_file_id. 2023-02-09 18:31:02 +03:00
levlam
0adcac246a Use explicit as_mutable_slice to get MutableSlice. 2023-02-02 17:40:47 +03:00
levlam
5cd523408d Asynchronously check local location of all viewed and opened files. 2023-01-25 19:25:04 +03:00
levlam
f6168879af Explicitly fail reload attachment menu bot queries. 2023-01-16 15:16:36 +03:00
levlam
1588f0d687 Return after call to on_error. 2023-01-18 17:10:08 +03:00
levlam
4408af6643 Improve "id" variable names in FileManager. 2023-01-16 13:30:03 +03:00
levlam
8d8f72a17a Fix some lower-case spelling. 2023-01-15 12:00:26 +03:00
levlam
3573990d52 Support symbolic links in walk_path. 2023-01-04 17:25:30 +03:00
levlam
903d994799 Improve punctuation. 2023-01-02 15:38:04 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
f6de50e19f Fix some spelling. 2022-12-22 17:04:18 +03:00
levlam
b8f4df741b Remove PhotoWithSpoiler and VideoWithSpoiler file types. 2022-12-21 17:37:16 +03:00
levlam
02db4f2fac Support sending of photos and videos with spoiler animation. 2022-12-15 22:41:55 +03:00
levlam
36c7dc2b63 Improve FullLocalFileLocation default constructor. 2022-12-15 23:05:51 +03:00
levlam
ec0dd68a57 Add td_api::getForumTopicLink. 2022-12-05 13:03:38 +03:00
levlam
af05db3f15 Add td::Hash and use it everywhere instead of unusable std::hash. 2022-11-23 19:37:32 +03:00
levlam
a776ac7566 Improve log message for failed to generate files. 2022-11-22 14:15:37 +03:00
levlam
3ae4a8d702 Improve logging. 2022-11-21 15:39:14 +03:00
levlam
0227bbc3cf Treat files with upload_pause as being uploaded. 2022-11-21 15:28:32 +03:00
levlam
68627a0c3f Add source to cancel_upload_file. 2022-11-21 14:33:19 +03:00
levlam
19e080d3d2 Avoid non-required file_id duping. 2022-11-21 12:06:05 +03:00
levlam
0b387a61ad Add source to dup_file_id. 2022-11-21 11:40:43 +03:00
levlam
63b528f213 Speculatively add channel users added through addChatMembers. 2022-11-17 18:10:26 +03:00
levlam
3373ac8aa8 Don't replace cached file_id of being uploaded files. 2022-11-14 18:30:10 +03:00
levlam
ecceb1c472 Fix file registration. 2022-11-13 11:56:52 +03:00