Commit Graph

2086 Commits

Author SHA1 Message Date
levlam
d18f89c071 Repair file reference in UploadDialogPhotoQuery.
GitOrigin-RevId: ab8eb37ad270381cac494ad5e16405487ff2a3a2
2019-01-29 01:52:36 +03:00
levlam
16105d56f0 Do not drop file_id in EditDialogPhotoQuery.
GitOrigin-RevId: 25f3f77d70cf5e537fc867c436ce699ea24ca82a
2019-01-28 18:42:28 +03:00
levlam
297e7642bb File reference repair in SendMedia.
GitOrigin-RevId: 086076167af60b39d132a8c71b84f965c4b521d0
2019-01-28 18:21:48 +03:00
levlam
ebe337e671 Remove unnessecary calls to get_dialog.
GitOrigin-RevId: b644dfddc9a8486724ed0fdbfb0ce3117f70ada0
2019-01-25 19:15:30 +03:00
levlam
5e8f973ecf Clear active dialog actions for left channels.
GitOrigin-RevId: e64622ebfb8407736bd621e8d665db7f8414acca
2019-01-25 19:12:03 +03:00
levlam
3e8277d65c Fix some possible use after move.
GitOrigin-RevId: 37e17c445c9a9df56d85452c964603c08334045d
2019-01-25 18:44:23 +03:00
levlam
4a36aaaa9d Handle closing during file reference repair.
GitOrigin-RevId: 2712f7be176353afee0551f519dff34d4369e262
2019-01-25 17:51:47 +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
6e7f33b909 Better constant file references.
GitOrigin-RevId: 81ff0344eab5c584c57eb88e5cd5210641f597c7
2019-01-25 17:39:11 +03:00
levlam
c82e983495 Do not return InputMedia with expired file reference.
GitOrigin-RevId: 5eebe93c45791caee18724572180fcc0cb3a4c6c
2019-01-25 17:33:24 +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
4eec01cb49 Support file reference repair in getAttachedStickerSets.
GitOrigin-RevId: 368e1eccdbb99b9953153daf970825405ef6348d
2019-01-24 22:41:05 +03:00
levlam
dd06568a48 Simplify BufferRaw constructor.
GitOrigin-RevId: 829ca6b32fc320782051b6a01a39f7290ae117ed
2019-01-24 21:15:08 +03:00
Arseny Smirnov
c087b4bb6e fix compilation error
GitOrigin-RevId: 20b5add31a628fd040e1f20c103d330dfa3c7652
2019-01-24 18:01:02 +04:00
levlam
2edc069583 Explicitly init some std::atomic.
GitOrigin-RevId: bfbe95bd1aaed9c3ade31d9a7222b223bfece347
2019-01-24 06:18:14 +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
3648434fa4 Update maximum forward_limit to match new server-side limit.
GitOrigin-RevId: 7de9d81973a28f665c981b42adfa863606116158
2019-01-23 18:06:08 +03:00
levlam
297644fcb4 Better Windows detection.
GitOrigin-RevId: c07960f628f6fb93079d9b4efdf072f580599632
2019-01-23 17:53:01 +03:00
levlam
45d5c6c626 Allow random-padding connections to server.
GitOrigin-RevId: ebbcd7074837f4d51ec31445a9e8c820472afeee
2019-01-23 06:13:51 +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
e01336c675 Fix TD_ENABLE_DOTNET option value in example.
GitOrigin-RevId: f21feda5eb6c4fd1b6ba32f7e6e95a34a27a2f8f
2019-01-22 16:36:59 +03:00
levlam
542eb9e5c0 Create web page file source.
GitOrigin-RevId: 3e920c90df20cf24a1911124323ef4b258b72463
2019-01-22 01:32:13 +03:00
levlam
dcdf4fae36 Remove non-const WebPagesManager::get_web_page_instant_view.
GitOrigin-RevId: 344a549f1585c8b52156d96a5ed68b36818e3fd2
2019-01-22 01:06:24 +03:00
levlam
e8d3674eb4 Add get_web_page_file_ids method.
GitOrigin-RevId: f25119ed147005068f9ff709813ba10e8810fc57
2019-01-22 00:59:55 +03:00
levlam
73d09e1816 Remove non-const WebPagesManager::get_web_page.
GitOrigin-RevId: 87352c2c4f21142ae18ce163e2a84bd3939e09f8
2019-01-21 23:55:26 +03:00
levlam
36d45046d0 Create saved animations file source.
GitOrigin-RevId: 0022034837c77740e335b99c5dc008a6802c7ea6
2019-01-21 23:30:28 +03:00
levlam
eca4dc8948 Create wallpapers file source.
GitOrigin-RevId: f890a2191a412cbf15aecac6b054bfdbf52fd3ab
2019-01-21 21:25:30 +03:00
levlam
c52f9b6b6a Better logging.
GitOrigin-RevId: 94da2ea5502310357d977aafb1ff5eec71f553d5
2019-01-21 21:22:56 +03:00
levlam
d80e2d5091 Optimize FileReferenceManager::merge.
GitOrigin-RevId: a90658d47bacdfd50bf834f54f0b71dd54c375cf
2019-01-21 20:43:58 +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
9f6d9ec48c Fix crash.
GitOrigin-RevId: 4463222ba6259feb15ee74face187d430030401d
2019-01-20 17:59:02 +03:00
levlam
937db792cb Create file sources for channel and chat photos.
GitOrigin-RevId: c3660edd78b7ad07aaa7e6c5e238c2e2e30f2b11
2019-01-20 06:34:47 +03:00
levlam
730466e328 Enable repairing of all FileSource types.
GitOrigin-RevId: 3769adf7c9fd149b39f8ff9e7f7f8777d61b34d8
2019-01-20 06:04:40 +03:00
levlam
14a9580a88 Fix some includes.
GitOrigin-RevId: 435f02cc22e19e0aada87dceaccffd7ad68d7ac0
2019-01-20 03:21:26 +03:00
levlam
3e154dba81 Remove temporary test executable.
GitOrigin-RevId: 9e465b579389340a55506bddde6c6fd847f60bb1
2019-01-20 02:04:06 +03:00
levlam
61a4f2a671 Remove test logging.
GitOrigin-RevId: c2e96f762d669b04238f101398cb53926a90ec08
2019-01-20 02:03:16 +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