Commit Graph

3407 Commits

Author SHA1 Message Date
levlam
e16952121b Use emplace whenever possible.
GitOrigin-RevId: 67cd8e3b6331c5e1671a9d662f034af1e29d3ac6
2020-07-13 23:20:16 +03:00
levlam
cae55c5a54 Fix misprint.
GitOrigin-RevId: 0659d2d6949a03234a0951aca8652dec9a692636
2020-07-13 23:13:41 +03:00
levlam
029ee5dd37 Add disable_time_adjustment_protection option.
GitOrigin-RevId: 3a23943b294e2efdabb6c8e0ff606a2c62c05573
2020-07-13 17:01:51 +03:00
levlam
b1ad61add3 Add disable_persistent_network_statistics option.
GitOrigin-RevId: 214f63dec6317949fe13cf1d2fece7e249ddafcb
2020-07-13 16:56:31 +03:00
levlam
8a1ffe0cbb Fix remove_invalid_entities.
GitOrigin-RevId: 6cad36ac6017dcc3870411129a1b0512f9351d17
2020-07-13 15:34:56 +03:00
levlam
8799a30b6e Add updates about unknown users, etc. in getCurrentState.
GitOrigin-RevId: 137250f7e4e194f4048ee399e0a80bc29c6e0429
2020-07-07 18:48:17 +03:00
levlam
49d9ec8c69 Add channel_id validness checks.
GitOrigin-RevId: d2f1330b492306d982beec1429577d489986bccc
2020-07-07 17:37:19 +03:00
levlam
de242740a1 Postpone channel username change side effects before channel is loaded from database.
GitOrigin-RevId: 50e6cd47c813e346c2b0deed459bf75b65c963b0
2020-07-07 16:53:21 +03:00
levlam
abf833e4f3 Postpone channel status change side effects before channel is loaded from database.
GitOrigin-RevId: 591b017d47920027d97e0a271158e413fac9ab81
2020-07-07 16:34:47 +03:00
levlam
bf287039ce Add checks that updateUser/BasicGroup/Supergroup is sent before update*Full.
GitOrigin-RevId: 8f499cf7cc8e52c93d3abcb79d5b7f22466f0656
2020-07-07 15:36:03 +03:00
levlam
68dea56632 Use chatPhoto instead of userProfilePhoto.
GitOrigin-RevId: 4027e53be967551620c61a583bfda789a78f9581
2020-07-07 14:19:54 +03:00
levlam
193c7c6293 Rename chatPhotoFullInfo to chatPhoto.
GitOrigin-RevId: f97da057f1f74ccce283d21d1cfdd827bf51c871
2020-07-07 13:48:56 +03:00
levlam
d484baa1ee Rename chatPhoto to chatPhotoInfo.
GitOrigin-RevId: e301571c29719009148353161da483de9902eb8d
2020-07-07 13:00:56 +03:00
levlam
aee1132ac5 Ignore inline query games without photo.
GitOrigin-RevId: fbaacdb3054d18b23806ea12cdb3f5a376761299
2020-07-06 21:51:49 +03:00
levlam
9a92f6d571 Simplify get_photo_object.
GitOrigin-RevId: 08c8fb7fe4eadb4bff56198d5834c708e032979b
2020-07-06 18:45:43 +03:00
levlam
82fdcd279c Drop outdated full Chat/Channel photo.
GitOrigin-RevId: 047da02c13e0de58a5fd3ca4a94e3b23485ec548
2020-07-06 18:40:58 +03:00
levlam
040ce6c529 Move get_persistent_id to FileView.
GitOrigin-RevId: e56d5998c515c5d5e93d31f8922a677f08a17243
2020-07-06 18:31:26 +03:00
levlam
01d367ea9b Support new BOT_RESPONSE_TIMEOUT error.
GitOrigin-RevId: 958289f3dab582be0560f7dc11598210448d5139
2020-07-06 17:39:53 +03:00
levlam
c56f2a8c1d Use chatPhotoFullInfo where appropriate.
GitOrigin-RevId: ffde532a24735ddac2536a448100ac8884adba83
2020-07-06 15:34:07 +03:00
levlam
a7bd0c3932 Add photo to *FullInfo.
GitOrigin-RevId: 21346a0880239abe428799fa58b9132abded6f13
2020-07-06 15:26:29 +03:00
levlam
53d694a01c Fix get_actor_unsafe usages.
GitOrigin-RevId: f39aa2d0a2083842698337bb34457826c1951be6
2020-07-04 12:00:14 +03:00
levlam
c865f6a42e Increase poll question length limit for bots to 300.
GitOrigin-RevId: 9ab822c385923e1a46642ad6dfffb97697f68a8b
2020-07-04 02:19:38 +03:00
levlam
2ac8c164ff Increase maximum file size.
GitOrigin-RevId: d4da965e7ecea03bc3eb356c41a81a715a06ace0
2020-07-03 17:31:06 +03:00
levlam
c4113c6be3 Remove SecretChatsManager::after_get_difference.
GitOrigin-RevId: 17f3a30e354e2e532ba3975c2d4b84f7d8c904d3
2020-07-03 16:18:23 +03:00
levlam
06bd4fa734 Add DialogParticipant validness checks.
GitOrigin-RevId: 74ca340bd890f0bd913a9f0d7aeb3e81f3829cf7
2020-06-30 17:46:36 +03:00
levlam
7a12f49d61 Add DialogParticipant constructor from telegram_api.
GitOrigin-RevId: 8d3080993b029028eb59c561f1fc700db87eb970
2020-06-30 16:43:44 +03:00
Arseny Smirnov
e78831cd2b secret chats: fix CHECK
GitOrigin-RevId: 191ec9b6542f1e861465c862261ed78a93d33886
2020-06-29 19:29:17 +03:00
levlam
5507d58339 Better handling of secondary file types in scan_fs.
GitOrigin-RevId: 7602a2e14c39fb280be03053160e2ad922ea1ca4
2020-06-28 22:04:21 +03:00
levlam
8e22bdb887 Fix non-main file reference repair.
GitOrigin-RevId: b80ec1cbdc3027a9d6ab7577e9d7492315b50867
2020-06-28 17:42:19 +03:00
levlam
9a1402b13e Make full user profile photos owned by private chat.
GitOrigin-RevId: d406b1eb689db978c308dc4a08563f64cabd0d24
2020-06-27 23:48:03 +03:00
levlam
c5cba87bf6 Improve user photo registration.
GitOrigin-RevId: 323513d5a30710bb8aabde9476b09be2eb8bd059
2020-06-27 21:59:10 +03:00
levlam
eb79c3084e Silence FILE_DOWNLOAD_ID_INVALID error logging.
GitOrigin-RevId: e332bc61d58f536a57ce4a10a7da0f6779fa5184
2020-06-27 19:48:08 +03:00
levlam
2ad13e414e Remove file reference tracing for chat photos.
GitOrigin-RevId: 1cb90efec24192b5a712cabde325c8768e1af572
2020-06-27 17:05:45 +03:00
levlam
8872fbf6ac Fix tdutils after merge.
GitOrigin-RevId: 5b9a863e405a9e3782157570156fda71bf2bb589
2020-06-26 02:24:13 +03:00
levlam
f6b4ced7bb Improve some variable names.
GitOrigin-RevId: b399b6fc1150aced96a41a75797d88e2df627415
2020-06-24 14:33:20 +03:00
Arseny Smirnov
fd6423dedf update tdutils from another project
GitOrigin-RevId: 79b8eb2ba229d733f82dbb17b8bd7f27471c9472
2020-06-24 14:47:36 +03:00
levlam
e8ac30cbbf Fix saving changed user photo in UserFull to database.
GitOrigin-RevId: 0ee766994fe59c6493f92bfe2424b3868cbbb304
2020-06-24 11:13:16 +03:00
levlam
4acf82c506 Add Photo.is_empty().
GitOrigin-RevId: 6dd6aeaaaa703f9cd865598d52b97eb64523fea0
2020-06-23 21:04:26 +03:00
levlam
ef04c17a89 Init photo ID to invalid by default.
GitOrigin-RevId: 072cd8bbd87267e086ed9a280ba5238e5e231a84
2020-06-23 20:50:16 +03:00
levlam
b02b578ab9 Add profile photo to userFullInfo.
GitOrigin-RevId: 8bf6604de32e191a0aa412cab1c00739eb774dd7
2020-06-23 19:40:37 +03:00
levlam
d0499a5505 Improve error message.
GitOrigin-RevId: 4f1cacdd9566a784df53d05d000330b161338e92
2020-06-23 09:56:47 +03:00
levlam
7f1c52bbec Update layer to 115. Support temporary read access to chat by invite link.
GitOrigin-RevId: 56bcbbde0bb6cb113db8e3c8554b7e1fd7622b23
2020-06-23 09:31:25 +03:00
levlam
d880865685 Improve logging.
GitOrigin-RevId: d9d4ff3eb325318676f44579b7d410e7a5b1cdd8
2020-06-23 01:02:46 +03:00
levlam
d01c906f53 Add get_main_file_type.
GitOrigin-RevId: 138fc28f8c8e59a8583514b53ce37750f2f0360a
2020-06-22 08:43:00 +03:00
levlam
9334243a5d Unify conversion function names.
GitOrigin-RevId: 10def5544dfd6a94ff89b15441006d102b512439
2020-06-22 04:28:03 +03:00
levlam
32af19acfe Improve constant name.
GitOrigin-RevId: 650c2c1ef42bb4d31f4cd5094cca5d251cc6c28a
2020-06-22 02:27:58 +03:00
levlam
d75c6eff57 Add FileType.cpp.
GitOrigin-RevId: 8ed89c8f90d3d83d810bdaede43d839962fea6fe
2020-06-22 02:20:48 +03:00
levlam
d5b4c57993 Add inputMessageDocument.force_file.
GitOrigin-RevId: 7f2780ba7f333e5f8df9c28bab429b8b12eaf26c
2020-06-22 02:02:21 +03:00
levlam
4f005e3356 Add MessagesManager::get_input_peer_force for offset_peer.
GitOrigin-RevId: 45ec6bb84f679c2b843f7487105069c3aa64341f
2020-06-20 03:45:25 +03:00
levlam
4ae7bc23dc Add two ways for OS version detection on Darwin.
GitOrigin-RevId: cddea795e5d289b1fe15d88fc99db51e42c7138e
2020-06-20 02:39:33 +03:00
levlam
47229e1dab Add expected_non_option_count to OptionParser.
GitOrigin-RevId: 41bf15d9bddf1673c0c421ef9e5108a5678f9842
2020-06-19 06:00:01 +03:00
levlam
251318d2da Add OptionParser::add_check.
GitOrigin-RevId: dbf50403ba264ddf04b50197f0b54500c8f761ce
2020-06-19 05:50:18 +03:00
levlam
5aa609535e Simplify support for unchecked options in OptionParser.
GitOrigin-RevId: 5a913944b5a6cfecdfb96287e2c670be8ca18547
2020-06-19 04:44:38 +03:00
levlam
0877d7f716 Automatically detect operating system version.
GitOrigin-RevId: d693799fdbfe4919da5a70c141709f2db93063d7
2020-06-19 03:45:24 +03:00
levlam
0275ecdcbc Fix "Try to" usages.
GitOrigin-RevId: 4ff6d26737f67180a1e9a1289f7f7fb428828b08
2020-06-18 05:02:18 +03:00
levlam
10c3cc2a51 Improve logging.
GitOrigin-RevId: d724bc73494d5ad5f19bc5d0e87c6bdc361183ee
2020-06-18 03:49:31 +03:00
levlam
448e8e0186 Fix connecting_since_ initialization.
GitOrigin-RevId: 0623c909eb05c6144b9443f1f287ddd8eafd874c
2020-06-18 02:42:01 +03:00
levlam
20099b730e Improve logging.
GitOrigin-RevId: 0740f7fc674e80a6be76f8cc8c847a22a0b6be90
2020-06-17 23:57:23 +03:00
levlam
4f8fd1781d Prettify OptionParser usage printing.
GitOrigin-RevId: f0b7c833e91d9eea49483bb93124babc190fa670
2020-06-17 06:09:53 +03:00
levlam
ce137620f5 Improve logging to PLAIN.
GitOrigin-RevId: 5fd64a3599e599a7ae27eecc284f0cd898db8aca
2020-06-17 05:51:36 +03:00
levlam
a7fa10718f tg_cli: use OptionParser.
GitOrigin-RevId: c2d73fcc79028d1dce9b951ad02ae880c114c1e0
2020-06-17 05:30:14 +03:00
levlam
c1688ca081 Use proper bit function.
GitOrigin-RevId: c0254cc33fce40682b8609f5fb73b23a4ab1927b
2020-06-17 04:16:59 +03:00
levlam
c46910d75f Add portable option parser.
GitOrigin-RevId: 0d4f7e2f5bec4826e1c12e3aa1aee642fcf6da07
2020-06-17 03:04:36 +03:00
levlam
96b18f3ad8 Fix loading empty list of pinned chats from binlog.
GitOrigin-RevId: 21f90fe3f9f869fe4b4fdab228a5bae1975728ae
2020-06-16 15:21:37 +03:00
levlam
3442a88413 Unify constant names style.
GitOrigin-RevId: 6e4475366b94cea6ab0331d57f254311490bdee2
2020-06-16 05:10:16 +03:00
levlam
44cd25afae Force data loading on MESSAGE_MUTED.
GitOrigin-RevId: 1911c676b7c25fe4334c2ef1f1dc2395e39b27f9
2020-06-16 00:25:12 +03:00
levlam
a5b0f205d1 Remove Promise debug.
GitOrigin-RevId: b248c369954ae5ddd81437e4a2fdde245544d267
2020-06-15 04:59:08 +03:00
levlam
ea4841a37c Unify enum constant name style.
GitOrigin-RevId: 2e36eef9b54c23da0d1bc9beb7e07af8835f702d
2020-06-15 04:23:47 +03:00
levlam
18b8e87e74 Support cpu_stat on Windows.
GitOrigin-RevId: df9a2fa6d53fb1c19cd30f2da3354bc23b2f3aee
2020-06-14 04:01:02 +03:00
levlam
6b1c2f797d Add mem_stat support on Windows.
GitOrigin-RevId: cf63e7fe53a00f2fa116472ed12f73492ad8bf29
2020-06-14 02:31:57 +03:00
levlam
2ed9cb3b75 Minor fixes.
GitOrigin-RevId: ce9058c2075281697cc41de2ab970dd11e189f77
2020-06-13 05:13:11 +03:00
levlam
c7bc1d1908 Fix strange clang CE.
GitOrigin-RevId: 82960c49e63d6d48d181bdf42e009930c60783de
2020-06-13 04:43:07 +03:00
2d3ce0ffcd Update AnimationsManager.cpp 2020-06-11 17:48:34 +02:00
205fa52f8d Merge commit '44689f81ff8b9bc4583c1c889d8034c47f0c5270'
Conflicts:
	td/telegram/DialogDb.cpp
	td/telegram/MessagesManager.cpp
	td/telegram/StickersManager.cpp
	td/telegram/TdDb.cpp
	td/telegram/WebPagesManager.cpp
2020-06-11 17:44:52 +02:00
andrew (from workstation)
b1307baad5 implement #1 2020-06-11 13:45:14 +02:00
andrew (from workstation)
713949414e implement #1 2020-06-11 13:42:03 +02:00
levlam
44689f81ff Minor improvements.
GitOrigin-RevId: 835275f0146586e4de5e18e9f01be29bb72ddf31
2020-06-10 03:42:00 +03:00
levlam
c921bcc5ed Improve NetQuery public field names.
GitOrigin-RevId: cfa0dbd98c1b03e4e86d62fc6486fcf90e72ef25
2020-06-10 02:44:54 +03:00
levlam
1e6bdbb7a5 Improve NetQueryDebug field names.
GitOrigin-RevId: 56c8c1804e9962caceda0105591cfd16446cd56c
2020-06-10 02:03:09 +03:00
levlam
fcb7a51eb0 Remove global net_query_list_.
GitOrigin-RevId: 345564fa64a1a6abe6e936713ab05c5c16e4a723
2020-06-10 01:47:17 +03:00
levlam
2d22f4d13e Minor improvements.
GitOrigin-RevId: e86b66d0cd5b78a02ce401c40a2c2fffc1bb5a3c
2020-06-10 01:38:00 +03:00
c047b969be Fix iterator increment position (caused SIGSEGV) 2020-05-25 15:50:21 +02:00
andrew (from workstation)
88892a70c6 fix sigfault in "DESTROY NULL file_id_info_" 2020-05-25 10:36:03 +02:00
andrew (from workstation)
c95a8c02aa destroy all file references 2020-05-24 18:01:52 +02:00
e3bf0f63f0 Patches 2020-05-23 21:27:24 +02:00
levlam
14bbb15eb6 Return view count for forwarded failed to send messages.
GitOrigin-RevId: ef08ac19c3650c114d5144aedc2952ab631cfa49
2020-05-22 21:03:53 +03:00
levlam
dadeb6223e Update dice_success_values before dice_emojies.
GitOrigin-RevId: 025b2aeca96bef65bcb3120a8dff6a4792e08aa5
2020-05-22 20:59:00 +03:00
levlam
3ecbe54242 Fix misprint.
GitOrigin-RevId: 90bbeac5fa87b296b8f4e666fedb904d7a4ea6cb
2020-05-22 20:53:31 +03:00
levlam
ef9d8415f3 Do not get history in being added dialog.
GitOrigin-RevId: 06746812288030ab96c46e971e5d335024eaa64e
2020-05-22 18:48:04 +03:00
levlam
c204fd6256 Never allow animated stickers outside of sticker sets.
GitOrigin-RevId: 7e86904956e1bdfc7b423fdfef5f212199caeb85
2020-05-22 18:09:17 +03:00
levlam
05b279bb13 Never trust peers sticker set name in secret chats.
GitOrigin-RevId: 11f6534963920bd7c736a9cb3dcf3c73e2e68e6c
2020-05-22 18:07:04 +03:00
levlam
409796d9dd Improve error message.
GitOrigin-RevId: 3c76a4b84edf78ac41ab2ce88ebda4421faff5b7
2020-05-22 15:59:29 +03:00
levlam
fc6738e85b Add more checks for message ID being a scheduled server.
GitOrigin-RevId: cd86bff3c1b029905743e84103f4d30d79a2b1bf
2020-05-22 15:53:36 +03:00
levlam
aa515c895b Hide view count for failed to send messages.
GitOrigin-RevId: 7450f2f80cf943d013f5da41101d0f85ee00e1fa
2020-05-22 15:38:46 +03:00
levlam
34c9ee6e84 Preload pinned_message_notification_message_id even it is newer than being added message, because it could be deleted in set_dialog_last_new_message_id->delete_all_dialog_messages_from_database->remove_dialog_pinned_message_notification.
GitOrigin-RevId: 8c4b73436bc26870af4fa788dedd5035e17116b9
2020-05-22 13:12:31 +03:00
levlam
54909ad713 Improve message_count updating.
GitOrigin-RevId: 365ac733fc40c06fc959376246c9c4b2b1987a10
2020-05-22 03:58:36 +03:00
levlam
b1dc75cdc4 Allow unordered updateNewMessage for bots.
GitOrigin-RevId: 3aa3e6143eb0558f1a822ece051b9666725f0301
2020-05-22 03:43:02 +03:00
levlam
4d8c9a3a60 Connect all messages after last server message just in case.
GitOrigin-RevId: c99a8e50f49a37d1f34997b5de53129f34ec80d3
2020-05-19 16:48:59 +03:00
levlam
179117cfb8 Delete server messages found after last server message just in case.
GitOrigin-RevId: f149afc10830895fc100db6251befc1afbeb4292
2020-05-19 16:39:44 +03:00
levlam
4c80155092 Improve spelling.
GitOrigin-RevId: 73edc0a7a57f40c404b4b5c8d00e9b20127f9abc
2020-05-18 22:54:18 +03:00