Commit Graph

270 Commits

Author SHA1 Message Date
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
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
eeceb2c1aa Fix documentation escaping.
GitOrigin-RevId: 691cad7eb078eac7642bd58655a8408d1229b9b1
2019-02-20 04:23:02 +03:00
levlam
5ef99afec7 Add messagePoll support.
GitOrigin-RevId: 41b93b2708285e4051fc01b856aa14a8c8c5c692
2019-02-19 16:45:32 +03:00
Arseny Smirnov
206fbc0686 downloadFile: add limit:int32
GitOrigin-RevId: 395d29e8383db5c54a3f85a555c4e9648546ef47
2019-02-18 22:08:05 +03:00
levlam
0d1be06cae Minor fixes.
GitOrigin-RevId: 252036493c4c9e94367ef13246bde96b2f89415a
2019-02-17 16:52:34 +03:00
levlam
c8cfee8d7b Better deduplicating saved animations and recent/featured stickers.
GitOrigin-RevId: 2bc58b3fabbf1cb01727e584036846e6acde0cc6
2019-02-16 05:29:28 +03:00
levlam
71aa152460 Add FileLocationSource::FromBinlog.
GitOrigin-RevId: cedd828bbd79a8cfc04efa0ecb239dafbfed4eab
2019-02-15 23:22:40 +03:00
levlam
24128120cb Add more logging and minor file reference fixes.
GitOrigin-RevId: 42fd08c7e7d8c4d0be12e5cddb352dd874553edb
2019-02-15 23:09:18 +03:00
Arseny Smirnov
49965b4ab7 FileManager: set full_source in set_new_remote_location
GitOrigin-RevId: e088e6858baff79ffc035bb7a05d2ffa5ec77b60
2019-02-15 22:40:09 +03:00
levlam
27a0bbd158 Precerve file remote in check_input_file_id.
GitOrigin-RevId: 52a3d32a606b8907f1ab94b7c10c2413346e66ec
2019-02-15 21:49:02 +03:00
Arseny Smirnov
75db56dcb3 FileManager: fail upload, when we cannot restore file reference
GitOrigin-RevId: 01f63f9405eb910a7ca09aa4203cb31888a7a8d0
2019-02-15 12:25:21 +03:00
levlam
20c95b93f4 Fixes for force_reupload.
GitOrigin-RevId: 4adb2e498738ab4ebfd22605382cfec150c0de36
2019-02-15 00:19:48 +03:00
Arseny Smirnov
82589eeb2f FileManager: force upload, and separate full and partial remote location storage
GitOrigin-RevId: 3bdc218738558012ee6e2a790a553b2f0fea1d62
2019-02-14 14:20:40 +03:00
levlam
9b42166c68 Explicitly include common.h.
GitOrigin-RevId: 5ae32c18d0ff18aac36334b494ea526ce7da4a9a
2019-02-13 00:26:36 +03:00
levlam
eb9ead582f Remove unneded includes of td/utils/loggging.h.
GitOrigin-RevId: 82a3b506dba5c9d5267dc0e2504a7093a7fa87db
2019-02-12 23:48:16 +03:00
Arseny Smirnov
61288bd8ab CHECK: fixes
GitOrigin-RevId: 5bccb4634a0c77e159ce3cdf80c37ff8a500bbd0
2019-02-12 20:48:13 +03:00
Arseny Smirnov
20bfcaa979 Use LOG_CHECK where it is necessary
GitOrigin-RevId: a8bd17cc2ee6e43dcea52bb25aef9ee1f91c7ec4
2019-02-12 19:17:20 +03:00
levlam
130b49a524 Various include and other fixes.
GitOrigin-RevId: 68e03e0636cd4cff3e6fa876342ba16453630f15
2019-02-12 19:48:52 +03:00
levlam
c7fff4539f Fix FileLocation.hpp include.
GitOrigin-RevId: 135722eba90cfa17dbd112663f17a7945acd5f72
2019-02-12 17:04:12 +03:00
levlam
5fbdc36af0 Return include FileData.h.
GitOrigin-RevId: 6c0adfc64ca8774cb7b8c72f01f5ad7965d577ad
2019-02-12 16:47:13 +03:00
levlam
b7b5fc0f06 A lot of file reference fixes.
GitOrigin-RevId: cfe82f1ea2f6fda7d5c63eb7f19e411fe5df61ff
2019-02-10 02:39:58 +03:00
levlam
3db62de13b Temporary clear file_references loaded from database for testing.
GitOrigin-RevId: e8bbb51d76b3e283afe1b7ffa7ad92efa40d6353
2019-02-09 19:52:25 +03:00
levlam
6a43a9e91e Support file reference errors in SendMultiMediaActor.
GitOrigin-RevId: ef25dd8bedab0998db1e57572e46e072c5e2e374
2019-02-08 17:54:23 +03:00
levlam
60241730da Add td/telegram/files/FileLocation.hpp.
GitOrigin-RevId: a6fd7c026b88006dc0f26694b2299cce2258d6c4
2019-02-08 00:00:26 +03:00
levlam
bc8b5d359c Add FileData.hpp.
GitOrigin-RevId: 2bb4c0469c7d9acfbd6c6f21c82718bd7d4c57df
2019-02-06 03:06:29 +03:00
levlam
3ed7d4ec34 Make FileDb dependency on FileData private.
GitOrigin-RevId: 00cbd0afe5e42d66212e8666e6e7c4d4ed13b9be
2019-02-05 22:43:45 +03:00
levlam
833bbdbb11 Improve merge_choose_remote_location.
GitOrigin-RevId: 0c145a4a1f6d43ebdf5eb618b581539f31eabc40
2019-02-05 01:45:16 +03:00
Arseny Smirnov
c08cbd5b54 FileManager: properly update RemoteInfo
GitOrigin-RevId: ac7b0d8a104ed2f74bfd6eb909eca859fe870c8a
2019-02-04 19:59:01 +04:00
levlam
282edef55b Add more delete_file_reference logging.
GitOrigin-RevId: f19b9140e4feb77d10927d5e40dd82aa8a8b09ac
2019-01-31 15:24:32 +03:00
Arseny Smirnov
8a80571903 Files: make all file references encoded with FileReferenceView
GitOrigin-RevId: c876f0d115035cb0e9030b6a4124c31c53a191b2
2019-01-31 12:33:35 +04:00
levlam
7542612098 Fix some includes.
GitOrigin-RevId: 47d6bcd57e12314cc46c8f23ef10c10cea04fdcb
2019-01-31 05:05:40 +03:00
levlam
346202fbaa Fixes for delete_file_reference.
GitOrigin-RevId: 15ffa944a037d34954ce5e7b0cea22131e1e976e
2019-01-31 02:57:14 +03:00
levlam
996869d4ca Implement store/parse FileSourceId.
GitOrigin-RevId: ff0d80bf2a8d479dae0cdca2c806a9731ff499d9
2019-01-31 00:37:38 +03:00
Arseny Smirnov
5203da0895 FileManager: try_flush_node_pmc
GitOrigin-RevId: dd087402d0339ca02979f96e1dbe32b8646ab4d1
2019-01-30 20:40:23 +04:00
Arseny Smirnov
2032f89723 FileManager: support two file references for photos
GitOrigin-RevId: f27a9867315e12e79a456c12949d8d2580531bbe
2019-01-30 20:08:50 +04:00
Arseny Smirnov
06a82aff73 FileManager: store file source in db (partial imlementation)
GitOrigin-RevId: 860e92368e226401e57072e8d64df48c263029f6
2019-01-29 15:07:58 +04:00
levlam
595eb119d7 Repair file_reference in UpdateProfilePhoto.
GitOrigin-RevId: 1edb98b56d2af603ac51d7ba6ee9e6cd08e12595
2019-01-29 02:32:26 +03:00
levlam
d18f89c071 Repair file reference in UploadDialogPhotoQuery.
GitOrigin-RevId: ab8eb37ad270381cac494ad5e16405487ff2a3a2
2019-01-29 01:52:36 +03:00
levlam
175da716bb Do not allow to set invalid file referene from server.
GitOrigin-RevId: aabcdd17500097c931a146a61236865f96d759ca
2019-01-25 17:44:47 +03:00
levlam
0fcf95dbbe Fix reupload priority.
GitOrigin-RevId: 03c333adff1798a85d605242cc50a05b3481baa2
2019-01-25 17:31:06 +03:00
levlam
bc6517b094 Remove unnecessary UpdateFile.
GitOrigin-RevId: 06a7365eb01793df4ed04f2cf111582d9be7d17f
2019-01-25 17:29:21 +03:00
Arseny Smirnov
ce8781a2aa FileManager: fix file reference recovery during upload without local location
GitOrigin-RevId: f16edacd197ae6f4635c65952ebef3131dafde3a
2019-01-25 15:03:17 +04:00
levlam
c474ce5994 Repair file_reference in editMessageMedia.
GitOrigin-RevId: 9826a975dda2838d12943efa03752a79ddee7765
2019-01-25 06:01:09 +03:00