Commit Graph

413 Commits

Author SHA1 Message Date
levlam
a0fa744735 Make FileEncryptionKey fields private.
GitOrigin-RevId: 06ec5e24b9154e1830fd3d37b833df60609c675a
2019-10-24 20:17:37 +03:00
levlam
0d375251a4 Fix logging of FileEncryptionKey by @chipitsine and cppcheck.
GitOrigin-RevId: 6292860a243435541a6c9632d0c214c495cd9835
2019-10-24 20:09:09 +03:00
levlam
3c880b13f7 Fix reuploading of generated files and thumbnail with invalid file_references.
GitOrigin-RevId: caf0df74bde926001188f867f6f1a098834da32e
2019-10-18 04:31:28 +03:00
levlam
c91efe472b Add force to another overload of get_input_media.
GitOrigin-RevId: fc64a9f6ee08e5432c6475f8b1493bcd2524ae4f
2019-10-09 02:59:25 +03:00
levlam
0b6c1d226f Update clag-format to the latest (190926/r372920) version.
GitOrigin-RevId: 7861ae8ad28eb1f6a06ff3c6f56eff3f67b1d24c
2019-09-28 05:14:21 +03:00
levlam
f29c4a9ed1 Remove unneded explicit td::.
GitOrigin-RevId: e3888510ce72a55072a11d105311f07b4ba42bbf
2019-09-15 06:19:46 +03:00
levlam
4d72f8c14b Minor fixes.
GitOrigin-RevId: cc03c7e7a507fab2308495ea23f8ef9630a8142f
2019-08-30 04:56:01 +03:00
levlam
197acde4d4 Fix first letter case in error messages.
GitOrigin-RevId: 004d1535d3fb04e51a088ad43f2386dea05b7c9c
2019-08-26 04:53:22 +03:00
levlam
ba5ae7229a Mark Bitmask::oompress const.
GitOrigin-RevId: 9dc12cb8b24afe5613e0dbdfca48da30da4c59b5
2019-08-23 19:25:07 +03:00
Arseny Smirnov
e1046570a3 FileUploader: fix race with partial location deletion
GitOrigin-RevId: fa3cd8ca2cd5b376d557242a6b5f296dc09c90f4
2019-08-20 10:42:21 +03:00
Arseny Smirnov
24f31ad888 FileManager: download big files with unknown size
GitOrigin-RevId: 3f4246f2d61127015138a32f2e93c8f932a81c50
2019-08-19 12:31:25 +03:00
levlam
84695437d3 Various fixes.
GitOrigin-RevId: 94d0df55495a08b5599c90f56dbe08ac3a3d65e5
2019-08-14 03:13:34 +03:00
levlam
bb24ec0629 Fix tdutils after merge.
GitOrigin-RevId: 3eceb2e574a737a78dc5414e535e416c86d23f7a
2019-08-13 23:52:54 +03:00
Arseny Smirnov
e07b03dea3 tdweb: experiments with storing incoming files into indexeddb
GitOrigin-RevId: 7ab38676faaf5eb4e8b4c43b05c268d0ea2784de
2019-07-24 15:07:55 +03:00
Arseny Smirnov
5a032743e6 Fix errors from tdutils import
GitOrigin-RevId: 3709df12a3050cf05e2bb482b49490a4e874f075
2019-08-12 16:53:17 +03:00
levlam
ad167a48ba Pass Slice to parse_url.
GitOrigin-RevId: e6cd357042b827ca56a11bb377c8b07ccd120230
2019-08-05 12:56:28 +03:00
levlam
84b33cd6a8 Add ConstParser.
GitOrigin-RevId: 58ef5b7e6d2568729228c11a3a495794f98566ad
2019-08-05 12:42:42 +03:00
levlam
b4cc4fea93 Check for old files in save_file_bytes.
GitOrigin-RevId: 8e45c35c56a1b4e41b42bbeef3322002be351e69
2019-08-04 00:53:06 +03:00
levlam
84dba6cd8e Add Debian 10 to build instructions generator.
GitOrigin-RevId: 10a156b2d27bcda835e4177ef09d0d8b5c82c511
2019-08-01 21:47:59 +03:00
Arseny Smirnov
0517c8ff4a SecureManager: reupload file on SECURE_SECRET_INVALID error
GitOrigin-RevId: 93b2fb8a5b48511720efcceabd3055bc0c49409b
2019-08-01 18:26:43 +03:00
Arseny Smirnov
331c8b52c1 FileLoader: add comment about FILE_UPLOAD_RESTART
GitOrigin-RevId: e8fb51da493cacd00af5ec7585cd8a95b605838a
2019-08-01 16:03:11 +03:00
levlam
108dc0d4f8 Remove END_PARSE_FLAGS_GENERIC.
GitOrigin-RevId: c9a47a56158829aca0572bab1497e3aebcc7216d
2019-08-01 03:40:28 +03:00
Arseny Smirnov
1d570ca85c PartsManager: handle some errors
GitOrigin-RevId: c0f65cce76ece49ec99557503d79da66995e44c8
2019-07-31 18:04:38 +03:00
Arseny Smirnov
4d33451758 PartsManager: restart upload when uploaded size is more than we have locally
GitOrigin-RevId: e307dbd150e97b04c73a9d40556dd26d9e6e4a00
2019-07-31 16:48:59 +03:00
Arseny Smirnov
29b807d660 TRY_END_PARSE_FLAGS_GENERIC
GitOrigin-RevId: c68a348c7466daa7ab3b6b93217585a18458885d
2019-07-31 13:45:32 +03:00
Arseny Smirnov
6ef242ad38 minor
GitOrigin-RevId: 01ead4852dbe67fcd04079049039f11b2f1e15e4
2019-07-30 21:29:52 +03:00
Arseny Smirnov
655add2ec0 PartsManager: some fixes
GitOrigin-RevId: fedd9458f18179cdabef579cdc251f8006a3f61e
2019-07-30 21:27:39 +03:00
levlam
2fd851dfe2 Repair sticker set thumbnail if changed.
GitOrigin-RevId: 1b0e2e997338d85249e6eee877ab0483d9826342
2019-07-30 18:43:29 +03:00
Arseny Smirnov
089d73953c FileManager: reload photo on FILE_ID_INVALID
GitOrigin-RevId: defb6736befa35189253f8ac70342be81a607918
2019-07-30 17:42:36 +03:00
levlam
38e4310b71 Remove standalone Sha256State functions.
GitOrigin-RevId: 5db80ea1902a6fe8a635081a8b050a19528f9f90
2019-07-23 03:50:03 +03:00
levlam
4ee295a29e Use Sha256State directly.
GitOrigin-RevId: 4fbbafbd14c43a551e9c24de65a6feed2b44b09e
2019-07-23 03:20:11 +03:00
levlam
635aca2924 Fix tdutils after update.
GitOrigin-RevId: afc6d10dd0e2b2a7193dd2c96f07d5ca1cb11a00
2019-07-21 21:07:07 +03:00
levlam
e76c98ad74 Fix animated stickers extension.
GitOrigin-RevId: 69d65bd19e46fe2eb2dc6ebb4afd6dd64164ffc9
2019-07-18 19:47:29 +03:00
levlam
6d61dcdc15 Fix warning.
GitOrigin-RevId: 337e0948847966a402cfd0372ed8393e5f7064c9
2019-07-15 21:47:07 +03:00
levlam
5a7f326140 Support animated stickers.
GitOrigin-RevId: f4a02797a47ffb39eaeee5bcc75ad4b5231dfdfd
2019-07-15 03:43:05 +03:00
levlam
d694b24418 Fix warnings.
GitOrigin-RevId: d3780ae558619ab6beb1fc7dc582285abdd280ca
2019-07-01 19:52:48 +03:00
levlam
572808eb43 Fix parsing old wallpaper remote.file_id.
GitOrigin-RevId: 29ed97ec9ebf31d396a849dbce36a7e710cf3026
2019-06-27 03:13:27 +03:00
levlam
c5eace2057 FileFd::stat fixes.
GitOrigin-RevId: 36197c4d134e4afe902eef066dc497c03228c271
2019-06-20 05:09:03 +03:00
levlam
8cf10f3fd3 Add PhotoSizeSource FileType checks.
GitOrigin-RevId: 92685f8d05de9543e381ba753e8fe66dbeee286e
2019-06-20 04:53:50 +03:00
levlam
e6cc07a244 Split DialogPhoto to Small and Big.
GitOrigin-RevId: 4c5800b4fb80c5f870577f93e9afdebf6b2b16b3
2019-06-20 04:35:08 +03:00
levlam
9675331eaa Add PhotoSizeSource file_type checks.
GitOrigin-RevId: e2b79fa71a2547ea5f065bc94691f28a6fe3d904
2019-06-20 03:51:37 +03:00
levlam
5022fa26aa Move secret to PhotoSizeSource.
GitOrigin-RevId: 99506d685d672a790e9b276ed14b18ae66792703
2019-06-19 03:53:11 +03:00
levlam
9a77b26a8a Add PhotoSizeSource.h.
GitOrigin-RevId: 63330f66b3459ecf9b2fdbce4d35faca7542ec3b
2019-06-19 03:18:44 +03:00
levlam
59fd30237e Add Variant parser and storer.
GitOrigin-RevId: e6b8e46184f67fed50ce96a58a8ba33c17789c57
2019-06-19 02:48:34 +03:00
levlam
0a380017d4 Remove PhotoSizeSource.type field.
GitOrigin-RevId: ef13086515430194150728f7ede427b6c87ba175
2019-06-18 19:56:59 +03:00
levlam
c38180f014 Move file_type inside PhotoSizeSource::Thumbnail.
GitOrigin-RevId: 0cf016d083bbd39d2a7abf7e2e1c267b4af29e90
2019-06-18 19:45:26 +03:00
levlam
b92223a61c Remove OfflineInputPeer.
GitOrigin-RevId: 1a3706ab5c923ba3dfb065c642e103fd9df688c9
2019-06-18 19:17:31 +03:00
levlam
b9a1ceec05 Remove OfflineInputStickerSet.
GitOrigin-RevId: 144f639f5c22e652a98505856fd4b6327f27deff
2019-06-18 18:59:32 +03:00
levlam
984ccd3d75 Update remote location when source is changed.
GitOrigin-RevId: fc2f41f1f47cc65b5aadbec14a302d8ab2d03d5f
2019-06-18 18:40:46 +03:00
Arseny Smirnov
ff3164ff04 Fd::stat returns Result<Stat> instead of Stat
GitOrigin-RevId: 7bdb5f0d65df55424db302e4df060b697d8ee11d
2019-06-19 16:31:25 +02:00
levlam
853c0986d9 Use static_cast to cast to bool.
GitOrigin-RevId: b62a74880cee8984ddf9607141b350f979000b4b
2019-06-18 03:21:55 +03:00
levlam
5273b48afe Use 0 as photo location secret.
GitOrigin-RevId: 53c9f487014da1430a58676424a1ab5797469f25
2019-06-18 01:33:32 +03:00
levlam
cfc9cc5f28 Remove support for two file references.
GitOrigin-RevId: 3bf8031e9cc8bcd95e8cb74246c32d9198991aa1
2019-06-17 05:37:57 +03:00
levlam
e59c88b22d Remove PhotoSizeSource.AsKey.
GitOrigin-RevId: c67a766c4496524393a59ed23801f6a60e5338d0
2019-06-13 02:05:00 +03:00
Arseny Smirnov
4b113527b2 Files: new remote (persistent) id version
GitOrigin-RevId: 9935066e24e9fff6c4b82b57b55ea2d517119b4b
2019-06-12 17:28:00 +03:00
levlam
e5f068e47a Minor fixes.
GitOrigin-RevId: 49ed5d6671efa92dec7b09fa8e7863e3665ea355
2019-06-12 16:05:22 +03:00
levlam
3a2bdc5031 PhotoSizeSource fixes.
GitOrigin-RevId: 7e7aa8a0f4a5daf50548f1dc0c4cc8ff7358942d
2019-06-12 14:42:06 +03:00
Arseny Smirnov
e38afe63cc Add PhotoSizeSource into FullRemoteFileLocation
GitOrigin-RevId: ce4e2c6a4dcd62684aa0916ead9c910afd6e932d
2019-06-11 13:10:14 +03:00
levlam
4c781ebb7b Update layer to 98.
GitOrigin-RevId: 7bc09a6ec637f12b2f90bc1fb6d82903feffc376
2019-06-08 12:26:35 +03:00
levlam
652d2a9570 Add td_api::setBackground.
GitOrigin-RevId: e0c38213b41942ed8a5163ca7eb4ea61caa71d7b
2019-05-10 15:36:37 +03:00
levlam
c2a370262c Better DcId logging.
GitOrigin-RevId: b1fe45b3ecd06ca6869a60124078930b2129b972
2019-05-09 05:01:45 +03:00
levlam
85dd77b02c Initial background support.
GitOrigin-RevId: 14d3a1166f837069c55f40036a633295600524ca
2019-05-07 05:51:56 +03:00
levlam
34fcde6827 Minor fixes.
GitOrigin-RevId: a5d8a4b0b9b9c4e858d7a9a7403bef0de7e009e0
2019-05-22 21:17:24 +03:00
Arseny Smirnov
3ab3c699b7 FileGcWorker and FileStatsWorker: better cancellation
GitOrigin-RevId: d3b251f19eea923906d8bf8c9144b18e8724cedb
2019-05-16 15:05:22 +03:00
Arseny Smirnov
30e1697157 FileGcWorker and FileStatsWorker cancellation
GitOrigin-RevId: 6332bd0800b32a6ca3089223be3995fd06a3118b
2019-05-01 16:15:54 +02:00
levlam
6e95c15790 Remove unneded includes.
GitOrigin-RevId: f8c3d6481c4a6d8ccac6cbae875fa8de98c32bc2
2019-04-30 15:50:26 +03:00
levlam
16a209cef0 Use some unused Status responses.
GitOrigin-RevId: b49d15a22918169b5e1a212e5858dc2e9bd2033e
2019-04-28 15:00:06 +03:00
levlam
4d0fed097a Allow zero count in readFilePart.
GitOrigin-RevId: 97e6f7defe69d1993542c356798961333b061e39
2019-04-27 17:14:45 +03:00
levlam
fc363c5292 Add missing include.
GitOrigin-RevId: 6b6388813d9546be578f6da6a2f705019172db0b
2019-04-26 04:05:08 +03:00
levlam
ccfc5337f8 Add td_api::writeGeneratedFilePart.
GitOrigin-RevId: 2dfcba1d5f14dfd5e701ac02d3a8fc96090a00f2
2019-04-26 03:18:00 +03:00
levlam
2898c8909b Add language_pack_database_size to storageStatisticsFast.
GitOrigin-RevId: 6c11b5b88edd470da8abe2a0459a9067c3cb6d21
2019-04-26 01:47:25 +03:00
levlam
be06d10b39 Add td_api::readFilePart.
GitOrigin-RevId: 8d44ecfa62dc39d288232248e6db5aad82870729
2019-04-26 01:03:31 +03:00
levlam
a26d827a38 Improve logging.
GitOrigin-RevId: 90530bd13523ad525d93d67e0634524c1459c8e9
2019-04-22 01:25:18 +03:00
levlam
e77bbc7ffc Add separate field for log size in fast storage statistics.
GitOrigin-RevId: 6e76c7ac995db6599a927d54e8d85aed95f020c0
2019-04-21 19:22:58 +03:00
levlam
849a4fbdb1 Fix fixing of is_dialog_pinned_message_notifications_disabled.
GitOrigin-RevId: 28993e5eead5c487b0e3c1efe1d69ba936561e1a
2019-04-19 01:03:33 +03:00
levlam
fe9f1e52d2 Add more DcId checks.
GitOrigin-RevId: ca4bfdc046e78ef7e216c8a5bda8e5ddcd88cfec
2019-04-09 01:37:20 +03:00
levlam
fb4475e83d Move file_reference and notifications logging from WARNING to INFO.
GitOrigin-RevId: e03ee30dac7fbec2930a3cd1c625b43136d3739f
2019-04-08 19:15:39 +03:00
levlam
521227a2f6 Minor fixes.
GitOrigin-RevId: 8fdf69db2ee8131aad5a40f5755fc7761f97a633
2019-03-29 14:32:50 +03:00
levlam
db66ddf0be Add possibility to download files synchronously.
GitOrigin-RevId: 2b633fcc06a8d8770a6fb31a0d0bd9dac971df9e
2019-03-27 21:43:46 +03:00
levlam
8f771b8666 Fix ERROR logging.
GitOrigin-RevId: 39570dcd2c009b64e08f3c9193bddc2d8dfe656e
2019-03-25 02:29:33 +03:00
levlam
7776513651 Ignore .nomedia file in statisitcs and flle gc.
GitOrigin-RevId: 2b1ab488b4686563d4d7368261c784c8cd7ad691
2019-03-24 21:36:21 +03:00
levlam
8cbbe017bd Fix registering file sources in FileStatsWorker.
GitOrigin-RevId: 0a971c9248d5d4fa9106d7ef4751d2431a50c80e
2019-03-18 00:40:10 +03:00
levlam
b5407cd6bc Minor fixes.
GitOrigin-RevId: 39fb006dd5d935f6dd0b400114d71391463450eb
2019-03-17 23:43:58 +03:00
levlam
3268cbdd8a Prefer URL or generate location over local location when storing a file, because local location could be invalidated any time soon.
GitOrigin-RevId: 1782db65a8fc5cfd90f51f755be56b9b6f8d513f
2019-03-16 23:25:11 +03:00
levlam
399d13040d Better streaming gffset debug.
GitOrigin-RevId: bb0f5beea36151840685c8c0e33e6ff553e0d9e5
2019-03-16 23:13:18 +03:00
levlam
be02d7e58b Move mtime logging to files (maybe temporarily).
GitOrigin-RevId: 2d3bc002782e6df61a300e086dcbdc5affe7b393
2019-03-15 22:11:56 +03:00
levlam
6a9a931f29 Fix mtime comparison.
GitOrigin-RevId: ba6d77667478bdbb6297b449929b4adcd55c12a1
2019-03-15 21:52:54 +03:00
levlam
87eaeb2db2 Fix division by 0 in Bitmask::get_ready_prefix_size.
GitOrigin-RevId: c16d3a9a2622d31c3ab186c350d67466e4d99bdc
2019-03-09 17:31:52 +03:00
Arseny Smirnov
347a22858c Files: fixes
GitOrigin-RevId: 5469a6c26fbb187fd52ddaf1c8bacfae4ddddbe9
2019-03-10 12:31:24 +11:00
Arseny Smirnov
986ce38998 PartsManager: recalc streaming_ready_size_ when streaming_offset changes
GitOrigin-RevId: e2b82154cbf9ef1f1bf4ed322f518eb0f4ead0cc
2019-03-05 10:48:50 +03:00
levlam
1ee2b63230 Fix streaming_ready_size_ calculation.
GitOrigin-RevId: 62ad330749e88188697de7f23b525ac9e426d780
2019-03-04 00:37:25 +03:00
Arseny Smirnov
604547adc8 FileManager: fixes
GitOrigin-RevId: fd6071262f55fb803f67359b9f7e5075fcec862e
2019-02-27 19:00:10 +03:00
Arseny Smirnov
66c604f2d4 FileMananger: do not store file reference is persistent file id
GitOrigin-RevId: 6da317bcac575ed4398a8971229250c0948ee097
2019-02-27 18:08:24 +03:00
levlam
0bf5825c01 Fix set_download_limit.
GitOrigin-RevId: 4f4e77bde657d6586ffbe861e1affc6b3c14d4a2
2019-02-27 00:42:54 +03:00
Arseny Smirnov
ffd7b166d9 PartsManager: fixes
GitOrigin-RevId: 7e4c663f53aa8b146cf9119ddf8e9fa680bb738b
2019-02-26 17:14:07 +03:00
levlam
68afd36808 Add logging.
GitOrigin-RevId: d6f3e17e2c37ec4d04c25eb6756cfebfd325ffba
2019-02-23 22:34:50 +03:00
levlam
f32ed5c405 Add LanguagePackInfo.is_installed field.
GitOrigin-RevId: c32c51a4584ab98aae3b15a1f31cfd9bff268a79
2019-02-23 18:29:04 +03:00
levlam
58f63d36d6 Fix includes.
GitOrigin-RevId: d633dc842591cd28a03f9fba6974a171926ed229
2019-02-22 23:15:43 +03:00
levlam
4d5fb2902c Unify names of ParserT/StorerT classes.
GitOrigin-RevId: 69df5062e20cc87c0778e1b125ab46575c365377
2019-02-21 20:54:20 +03:00
levlam
e6b0b19ea8 Update comment.
GitOrigin-RevId: 663bef62ac8310fba5aa5c717005a715a21c8985
2019-02-21 19:51:52 +03:00