Commit Graph

252 Commits

Author SHA1 Message Date
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
levlam
c958bd5b7c Add FileManager::cancel_upload.
GitOrigin-RevId: d6db4e90fbe361ed2c90e509fe3aa609df5988e6
2019-01-25 04:52:38 +03:00
levlam
44ed807417 Do not throw away file ids of reused media.
GitOrigin-RevId: dcc460775768ae87ffc3be01ef8da8985b394463
2019-01-25 04:38:11 +03:00
levlam
9d9b0cd2ad Do not send unnecessary update files on remote location change.
GitOrigin-RevId: 2f76e0a82946354736849edad3fcc3d80f760658
2019-01-24 22:52:24 +03:00
levlam
0ac8c2d389 Repair file_reference in SaveGifQuery.
GitOrigin-RevId: ae9fcc543795a659c51699af8ea0048a0b5f8fb5
2019-01-23 22:20:48 +03:00
levlam
6633b87d51 Add is_file_reference_error.
GitOrigin-RevId: 7c36433edff5de1a9ef6c2ffb0b4745e4aede0be
2019-01-23 19:00:56 +03:00
levlam
e0dd56ce8c Fix repairing of main user photo.
GitOrigin-RevId: 6cd643f17af99b92eec9fe230aa30fc3469c4407
2019-01-22 19:08:41 +03:00
levlam
62a01e2b61 Add profile photo file source.
GitOrigin-RevId: 7324c1a4927e135c84a6406b606684297f2447ff
2019-01-22 18:07:21 +03:00
levlam
d04a1a61cc Add wallpapers file source for wallpapers registered by remote location.
GitOrigin-RevId: a0994ef92ef927d780acf6a79cfad5b424d93784
2019-01-22 17:35:29 +03:00
levlam
8ac921b8e7 Add FileManager::get_file_ids_object.
GitOrigin-RevId: a7e76f5e28514e2ccd99ce2316d5e4043836062f
2019-01-21 20:19:02 +03:00
Arseny Smirnov
0697962c3c FileManager: bugfix - delete empty file reference
GitOrigin-RevId: 60480b877c828b1adcabd9dce9e2f6b8df72646a
2019-01-22 18:34:10 +04:00
Arseny Smirnov
faebe9faea FileManager: treat empty file reference as a valid reference
GitOrigin-RevId: ccc70eb4ef7cffe2640426a22cb5074ec6a4c062
2019-01-21 18:04:49 +03:00
Arseny Smirnov
d9f51ffb77 FileManager: bugfixes
GitOrigin-RevId: c8b289a23ea898fa1772d0184b66b813dcbfe760
2019-01-20 18:26:51 +03:00
levlam
14a9580a88 Fix some includes.
GitOrigin-RevId: 435f02cc22e19e0aada87dceaccffd7ad68d7ac0
2019-01-20 03:21:26 +03:00
levlam
73996c6efe Better file_type_name.
GitOrigin-RevId: d3c0c0b88e9dec5348fa72c66d7403507e493e18
2019-01-20 01:59:37 +03:00
levlam
e63d5ec20f Use correct type for file_type_size.
GitOrigin-RevId: 63baf89ab57485f0bc0f902590271c40f34cf151
2019-01-20 01:10:15 +03:00
levlam
e5400074ce Move FileType to FileType.h.
GitOrigin-RevId: 7e35c0f30b7755755b0583704dcfe344cc28d117
2019-01-20 00:54:29 +03:00
levlam
3c46828749 Move FileDAta to FileData.h.
GitOrigin-RevId: d0724db9881d39ca22fe491dc4809a3f03bf6b2b
2019-01-20 00:26:23 +03:00
levlam
13c00abf17 Move as_key to FileDb.
GitOrigin-RevId: 4ecd7b79bdf0bc504dc5a3ddd39f971f47d0d1bb
2019-01-20 00:12:55 +03:00