Commit Graph

1394 Commits

Author SHA1 Message Date
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
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
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
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
levlam
cdefe9b1ee SetWithPosition CE and other fixes.
GitOrigin-RevId: 69278e7906c738924e1a4771b5b755ff349ea26f
2019-01-19 20:19:29 +03:00
Arseny Smirnov
b2ad399bc9 New SetWithPosition implementation
GitOrigin-RevId: baa20eabced4227b065bd74f04a3621b6467a339
2019-01-19 17:50:20 +03:00
levlam
3bc0d8eb9a Add FileSourceId.h.
GitOrigin-RevId: 98707d3c9248fb4873ccb8b1e890bb0926bfed73
2019-01-19 05:44:31 +03:00
levlam
7ff1b83a24 Add combine helper method for arrays.
GitOrigin-RevId: a67c7a72525a9853072ad93fca47cd573a2da764
2019-01-19 04:09:58 +03:00
levlam
561b409d02 Disable notifications for more message content types just in case.
GitOrigin-RevId: a0c8cfe6800d3e49fcd797240d9a6ca217139363
2019-01-19 03:53:43 +03:00
levlam
4f16a72b02 Move editNotification update to a better place.
GitOrigin-RevId: 6735f3fea8bedd28447e3c4714ee00a8d4b10d9a
2019-01-19 03:44:54 +03:00
levlam
b61efbb40d Delete self-destructed files if a message content was changed.
GitOrigin-RevId: 54c39a5a7ce014a3bc1f05c11d559ef2518b6bb0
2019-01-19 01:32:05 +03:00
levlam
51b3711171 Better get_message_file_source_id.
GitOrigin-RevId: 4de6e99640bb9fc4b6be8ddbc89817be3d5e1f99
2019-01-19 01:19:15 +03:00
levlam
d805569459 Reget failed to edit message from the server.
GitOrigin-RevId: 5afe193653c8d9450a886c878c2d3eab1f42fb74
2019-01-19 01:10:10 +03:00
levlam
d08e3ec449 Add missed call to remove_message_file_sources.
GitOrigin-RevId: 5a2e05f8a285b1964b7c739bec398be52d6a0e88
2019-01-19 00:34:34 +03:00
levlam
ff0130c48e Use change_files_source in MessagesManager.
GitOrigin-RevId: 46c75e91e6ac02f76dba58feb484e57de5609ea3
2019-01-18 23:40:23 +03:00
levlam
d4882f7c07 Add change_files_source method.
GitOrigin-RevId: 25078e0ca82d34489727823bfcfa781424f48913
2019-01-18 23:12:09 +03:00
levlam
afed91fec9 Add create_*_file_source methods.
GitOrigin-RevId: 52c2f793bb911a7068b0ee29f8b15086c7c74a67
2019-01-18 22:36:23 +03:00
levlam
94f94750fe Add FileReferenceManager::get_current_file_source_id.
GitOrigin-RevId: 29f3bef8926e205c0c262ffe740c4cbd444e46b7
2019-01-18 22:10:38 +03:00
levlam
1f5a86ea58 Store correspondence between message and FileSourceId in MessagesManager.
GitOrigin-RevId: 1fc23f6032c473639ce24e6564632d80327d24b3
2019-01-18 21:24:03 +03:00
Arseny Smirnov
5bba9b0470 SetWithPosition: fixes and tests
GitOrigin-RevId: 7b74a05c72261222a4f43b86eecad668ffd40403
2019-01-18 19:39:19 +03:00
Arseny Smirnov
6ca19e05c5 FileReferenceManager: bugfixes
GitOrigin-RevId: 51d33c307297124dddb72224220977e1f31a15bd
2019-01-18 17:52:49 +03:00
Arseny Smirnov
a6e47943c3 FileReferenceManager: new queries logic
GitOrigin-RevId: 82592baaed566ef28e044cd0dc9fe67b625ae2ab
2019-01-17 23:42:00 +03:00
levlam
8851b9d066 Implement FileSource.
GitOrigin-RevId: 2cbeab03d2ea1fa56d9f746c5c6c6a41e28d2795
2019-01-14 21:46:04 +03:00
levlam
f54a0c3e70 File reference improvements.
GitOrigin-RevId: 40d3ac6cde73503af544df464cc9ff569fb4016d
2019-01-05 18:13:27 +03:00
levlam
cc5eaa6b7e Fix addind/removing file source for messages.
GitOrigin-RevId: 726e2671dee6368bce20bac207b8d3929b1a34f6
2019-01-03 18:26:44 +03:00