Commit Graph

469 Commits

Author SHA1 Message Date
levlam
8366da5ca1 Remove linked channel after receiving CHANNEL_PRIVATE.
GitOrigin-RevId: 50dd9ba04261c10d3f3dd13bda4c78357949d442
2020-01-21 16:15:32 +03:00
levlam
f2211527db Add support for recent poll voters.
GitOrigin-RevId: f4260d87ae4a22d56b2024c07713ceeb37203895
2020-01-12 04:40:17 +03:00
levlam
13dce473eb Safer saving of invite link info.
GitOrigin-RevId: 40c122f1dceb2bbc5f2bd9e6204393ce5c694340
2020-01-10 02:04:06 +03:00
levlam
5b26485ede Fix SplitSource build.
GitOrigin-RevId: 09aa9993fa30af502cae2cd0a5efe77444112b3c
2020-01-04 14:59:33 +03:00
levlam
713608ada1 Safe and reliable device token re-registration.
GitOrigin-RevId: 25273051c41ced913d1762a42cc0e19d36149a27
2020-01-01 19:38:54 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
3d574e39c3 Fix login link URL.
GitOrigin-RevId: 064e31b5b095db03ccd7cb9cb3b4e1fabc92aba0
2019-12-31 16:20:29 +03:00
levlam
395a96a764 Fix access to SWLite database.
GitOrigin-RevId: 2d94441b1a1213e4c4b6f97d9a37f238c344ae72
2019-12-31 04:53:01 +03:00
levlam
ba5ccf48c6 Add source to on_get_sticker_set.
GitOrigin-RevId: 90cccf55f20fc5dafb6c76a2f780f19a818487cf
2019-12-29 04:59:34 +03:00
levlam
7e1fa1fcb9 Better warning silencing in force_create_dialog.
GitOrigin-RevId: 2f10cbe2091f2d2d8e15de8e813c5997954f9900
2019-12-25 22:57:12 +03:00
levlam
1fc1b76d5e Better logging for results of getChannelParticipant.
GitOrigin-RevId: 08918a4577fa4e7337903e221a96ceb3534c11a4
2019-12-25 20:31:27 +03:00
levlam
8da2d89884 Fix warning.
GitOrigin-RevId: 635b716f371f5e86cfe4d599d573dc46558ae14c
2019-12-23 18:39:20 +03:00
levlam
b85302f928 Add direct cache for linked channels.
GitOrigin-RevId: 1d994bd0aef96c379312a4be776b7a107cd175da
2019-12-23 18:37:11 +03:00
levlam
738fec0d41 Fix assigning of min access_hash.
GitOrigin-RevId: e6b1a815e287a399c7af9e2cac6a1238c0715e17
2019-12-23 05:11:57 +03:00
levlam
dd1ae68f57 Fix documentation.
GitOrigin-RevId: 4c3bc6a52792adf79e055132dcd3ec9f8fb4186c
2019-12-23 01:55:14 +03:00
levlam
c093afbf68 Add source to get_channel_full.
GitOrigin-RevId: 4df2ac6b75f92359bf838226f707742764e92209
2019-12-20 17:17:06 +03:00
levlam
aa7d8c06bc Add logging in repair_dialog_action_bar.
GitOrigin-RevId: 3aaf69fc3b5f366b00617e52e917a36381b87c2f
2019-12-20 16:32:56 +03:00
levlam
cefc10e0ba Send updates when ignored_restriction_reasons changes.
GitOrigin-RevId: 8c30b41dfb3a34c9eca3d8a7be4622ee172593de
2019-12-20 16:11:58 +03:00
levlam
98782fb644 Fix warning.
GitOrigin-RevId: 8c7d5d5e8a3503d56ba0edc0b303a6ab09baa827
2019-12-20 05:07:00 +03:00
levlam
b49d4076c8 Preload created channels to correctly transfer ownership.
GitOrigin-RevId: 2741d029d494e4b1ac40d74e70bfb603e988676a
2019-12-20 03:09:25 +03:00
levlam
369345f47c Add ContactsManager::for_each_secret_chat_with_user.
GitOrigin-RevId: bf81c627a6d4cf00ff5b6c8882079cce23d636f3
2019-12-19 00:31:01 +03:00
levlam
0594b9e795 Do not send chat actions to bots, deleted users and users with hidden online status.
GitOrigin-RevId: 8bd7c272b34ae6d977e58e89f0e76a158f02f150
2019-12-18 18:57:21 +03:00
levlam
02e7697d02 Reload animated emoji sticker set only after getDifference.
GitOrigin-RevId: b69b2b4c51f934a2aeb04b7805408acdcf393417
2019-12-18 17:46:02 +03:00
levlam
9f60d0bae1 Support QR code authentication.
GitOrigin-RevId: 140381ee80339b5ac2e15f149ad3a37688200e88
2019-12-17 19:17:57 +03:00
levlam
7620e43376 Return back checks for duplicate chat info log events.
GitOrigin-RevId: dee7372981433f603137f264ca0e490cd51226f7
2019-12-15 23:48:35 +03:00
levlam
3ec96b4c30 Remove channels from inactive channels list on new message or after leave.
GitOrigin-RevId: 8c9723ed489a714df0b70abe465c04eba1265b0e
2019-12-13 17:57:00 +03:00
levlam
71ddd7c7e3 Add getInactiveSupergroupChats method.
GitOrigin-RevId: 45b15965e50ab5d153a0de4e575fab6ac22eed11
2019-12-13 17:27:44 +03:00
levlam
46ed865570 Add chatAdministrator.is_owner.
GitOrigin-RevId: 8ba5a2e7b175cb5595a4d26e8050311960063938
2019-12-07 23:38:05 +03:00
levlam
bf0bc88e19 Better name for has_scheduled_messages.
GitOrigin-RevId: 8563f78409e3142baa21ac70f6c5bdeb1728c274
2019-12-04 20:51:52 +03:00
levlam
6b24886bf0 Partial support for scheduled message IDs.
GitOrigin-RevId: 752336efc26fb73a038801b99b490d0f68163b04
2019-11-26 23:47:13 +03:00
levlam
099e767b6b Add ServerMessageId.h.
GitOrigin-RevId: f71d1f41f84c2263890875271f47f938e792aa55
2019-11-26 19:33:18 +03:00
levlam
5b1d363918 Add Chat.has_scheduled_messages flag.
GitOrigin-RevId: 6d7f211647c738d5912476232e8842c245d1f884
2019-11-25 19:11:24 +03:00
levlam
e4eb01ad17 Automatically parse restriction reasons. Add option "ignore_platform_restrictions".
GitOrigin-RevId: 58de3f0dffb97b3d5c73aa3764aa5d48da1b709d
2019-11-24 01:37:46 +03:00
levlam
c5cc0e90f6 Update layer ro 106.
GitOrigin-RevId: 41e5db3d090559a7403accc8057c9957e6ead02d
2019-11-21 22:57:20 +03:00
levlam
0f353009f8 Improve slow mode.
GitOrigin-RevId: 068774033f5c84165e4833dafa29789d307ab97b
2019-11-21 16:58:00 +03:00
levlam
97cdacff7b Update slow_mode_next_send_date when a message is sent.
GitOrigin-RevId: d373e4685a4c6b717272844b50da8fb3139b2f64
2019-11-21 02:41:53 +03:00
levlam
2415d28b4e Send update after slow mode delay expires.
GitOrigin-RevId: 90b18c2a75f1e39ac967ebc3bbce84145769b2d8
2019-11-21 00:40:34 +03:00
levlam
fb90abcccc Add slow_mode_delay_expires_in.
GitOrigin-RevId: 118cd722f73982fc86823b28358f7111848d3b1a
2019-11-20 21:25:00 +03:00
levlam
9d4512d2bd Drop slow mode delay after is_slow_mode_enabled was changed to false.
GitOrigin-RevId: 63a492c8203eee4b99d2c3db4e6e9c63ba77fe73
2019-11-15 19:27:12 +03:00
levlam
119225ccef Add supergroupFullInfo.slow_mode_delay.
GitOrigin-RevId: 361741fc9f2e6a89be4b0a74749df5c035533d67
2019-11-15 16:48:01 +03:00
levlam
e12f7ac3e0 Add td_api::supergroup::is_slow_mode_enabled.
GitOrigin-RevId: cdbf1140507fe85dcb54cfc8831436d46762f27d
2019-11-15 15:46:12 +03:00
levlam
6d08f29fe9 Remove now unneeded backward compatibility fixes for bots.
GitOrigin-RevId: e53a2dc430b1eb02042b5f811471c4cec3b555d4
2019-11-13 22:34:32 +03:00
levlam
0c3e15026f Reget ChannelFull if it was changed between request was sent and the result was received.
GitOrigin-RevId: d05439fc5735b156cd4be9ac6547fcce18aa5150
2019-11-11 22:07:12 +03:00
levlam
43d8e6ccdb Return administrator ranks from getChatAdministrators.
GitOrigin-RevId: 8e3e540ae73aebacf9a3fe954b2b81511c999953
2019-11-11 19:14:32 +03:00
levlam
fbbf6470f3 Add support for administrator custom titles.
GitOrigin-RevId: a580b4713daa4746f5cd15e96c438fe179aea893
2019-11-11 10:02:23 +03:00
levlam
56eb8e0f9a Update layer to 104.
GitOrigin-RevId: a83eaf0a77fba5ccb0d34f690b2031c2ff5550f2
2019-11-08 19:23:05 +03:00
levlam
0b4b81282d Fix invalid is_mutual_contact flag loaded from database.
GitOrigin-RevId: 87196eef3a6c7f78c642014fcef3fcf7e8609ebd
2019-10-23 18:48:42 +03:00
levlam
1e018da7b8 Various fixes.
GitOrigin-RevId: b09e5fda6d25bd027f6bcbcbbe8324567b8ddcf8
2019-10-22 20:01:15 +03:00
levlam
0e874a5247 Add td_api::checkCreatedPublicChatsLimit.
GitOrigin-RevId: 9364cd09348ece39d56cbc8882fa8bfef36df18c
2019-10-22 14:06:46 +03:00
levlam
892a091998 Add support for location-based supergroups in getCreatedPublicChats.
GitOrigin-RevId: b328d62a998dc2e2b83d9721e001f9feee129d4e
2019-10-22 13:40:24 +03:00
levlam
918f6a0cfd Use td::contains and td::remove instead of std::find if possible.
GitOrigin-RevId: faa0863eb49ee8ce4c2138dfec022620f71d2f6a
2019-10-22 02:12:58 +03:00
levlam
e84e131efd Use td::remove instead of std::remove.
GitOrigin-RevId: f64e6d2199f1b9049e2bc022de1f65c9efba6647
2019-10-22 01:29:19 +03:00
levlam
86925625fd Rename need_send_update to is_changed.
GitOrigin-RevId: a40a5c0385d623e0023d5f6ed18c91d8605b5493
2019-10-22 00:29:24 +03:00
levlam
698c1d2160 Rename is_changed to need_save_to_database.
GitOrigin-RevId: dbf8292104a6e51dcc351bef94f6e220c1442265
2019-10-22 00:06:24 +03:00
levlam
de0e0d8173 Unify *Full.is_changed usage.
GitOrigin-RevId: 222ac98bc06fa5652add8e5d43c7861906209136
2019-10-21 23:47:58 +03:00
levlam
bc8f0dcb87 Store bot_user_ids in ChannelFull.
GitOrigin-RevId: 46b118c7a1e976bffc28fec5a7c2eb369317ee36
2019-10-21 23:39:46 +03:00
levlam
014248ac2b Remove UserFull.is_inited.
GitOrigin-RevId: 6c457ef1ba507c4edeb1ee7b81ffdba5ab35426a
2019-10-21 22:00:03 +03:00
levlam
035625d726 Save BotInfo in database and store in memory independently of UserFull.
GitOrigin-RevId: f12a7f6da707482a7e5c6e06016b0ccc3b45d2b5
2019-10-21 21:54:04 +03:00
levlam
9c2e44d7a5 Move is_bot_info_expired out of UserFull.
GitOrigin-RevId: 3fbb796097fba3654ad1f32ea01397aa12efb8be
2019-10-21 18:54:02 +03:00
levlam
5c6294253e Better place for can_pin_messages initialization.
GitOrigin-RevId: 620b86baccbb77b7b742ac820486b85f9827adc7
2019-10-21 18:20:22 +03:00
levlam
ee57044ae2 Variable names improvements.
GitOrigin-RevId: 39c654c4b2b262b087afb777a12307e803c260d6
2019-10-21 17:17:12 +03:00
levlam
5e8a79e984 Make User/Chat/Channel/SecretChat and *Full safe to use.
GitOrigin-RevId: 31b9cf38e37f409634be89214761ee76e2228d59
2019-10-21 17:03:23 +03:00
levlam
cc0a2eeb99 Better names for UserPhotos fields.
GitOrigin-RevId: 5f4b1c5d32e68ac02210cd21f2dc7b08415fb4fa
2019-10-17 23:41:16 +03:00
levlam
39a87fcb10 Move user photos out of UserFull.
GitOrigin-RevId: f70e021e5bad07eff95af4eb9ddc0c7c12779f91
2019-10-17 23:31:00 +03:00
levlam
4e436cdf17 Add drop_user_photos method.
GitOrigin-RevId: 57ff5576d56f1e190e62a3debe8b10b2de987338
2019-10-17 22:49:03 +03:00
levlam
08d6b880e0 Send updateUsersNearby only if users_nearby_ really has changed.
GitOrigin-RevId: cfa8800259ba03c0cfcad357ed4afe6a0bf5bb27
2019-10-17 21:35:32 +03:00
levlam
de069fef3f Add td_api::canTransferOwnership.
GitOrigin-RevId: 78eb21497c145c91b5da94e52eea5cff805f4b86
2019-10-17 19:43:41 +03:00
levlam
8206c05952 Add td_api::transferChatOwnership.
GitOrigin-RevId: ce897af94815412b2e8ff09c727e04b284726b41
2019-10-17 17:05:01 +03:00
levlam
47625f39f0 Add support for users and groups nearby.
GitOrigin-RevId: 98bde4f064541a0b8d6200092db0f3bc7f192b1f
2019-10-16 21:55:16 +03:00
levlam
acf8afd2d6 Add td_api::setChatLocation.
GitOrigin-RevId: 1bf8060374189bd2c9435b9c57ed499723de7246
2019-10-14 19:07:31 +03:00
levlam
41662e7048 Add location and can_set_location to supergroupFullInfo.
GitOrigin-RevId: 76550d71096e32cfd282f2e42a2a70176b2f5421
2019-10-13 21:41:09 +03:00
levlam
af527d0c9e Support supergroups with location.
GitOrigin-RevId: 976b72eaf8d5fd2226b6d548ed8bca167b385264
2019-10-13 20:58:32 +03:00
levlam
438300b2cf Return previous is_blocked value, when block/unblock request fails.
GitOrigin-RevId: e8132bcd987c8abe75fe4e01fb199f4dada74259
2019-10-11 18:55:14 +03:00
levlam
d2047ff6d1 Add reload_user_full and use it to repair action bar.
GitOrigin-RevId: b7b4bc20b944caca0c086d9ecbf99756e8330c61
2019-10-11 18:39:10 +03:00
levlam
9e8512411c Combine block_user and unblock_user.
GitOrigin-RevId: 50c31ba274a7a5b70efe68ee8d307541e65eb48c
2019-10-11 18:31:16 +03:00
levlam
ba2c88de53 Repair action bar when user block/unblock fails.
GitOrigin-RevId: 325052ffd27cf8206c743f503c242abe90949114
2019-10-11 18:22:46 +03:00
levlam
a3126dcce5 Add td_api::sharePhoneNumber.
GitOrigin-RevId: 522cee62cab40378802fbb5352f9d06ee2709a03
2019-10-11 17:59:04 +03:00
levlam
83d0d18a5e Delete unused default_can_report_spam_in_secret_chat.
GitOrigin-RevId: 9b7f2f5f0185600c00756f2f2f4543496d5feca7
2019-10-11 04:37:40 +03:00
levlam
62db4169a2 Update action bar when user is deleted.
GitOrigin-RevId: 1c31884369b944f79b2772e0142ce95a08ebafc1
2019-10-11 03:11:22 +03:00
levlam
9d229b7ad1 Update action bar when user is added to contacts.
GitOrigin-RevId: 52883ca7e29a3f1b9fe86a7cb210daba5c8cef46
2019-10-11 02:59:40 +03:00
levlam
24ecd9564e Hide action bar when the user is blocked.
GitOrigin-RevId: 2c317e3612555f496da0b6f2f55f1de60f62cd57
2019-10-11 00:46:05 +03:00
levlam
91bdd50884 Add need_phone_number_privacy_exception.
GitOrigin-RevId: b1d6237900577a50dcc105d72962cebe62ee70ca
2019-10-11 00:18:34 +03:00
levlam
1b147a8142 Add Chat.action_bar.
GitOrigin-RevId: 4429f6d77af0686dd2c890423a4667a5251f0bff
2019-10-10 23:19:26 +03:00
levlam
4801b1ca9e Support peerSettings in UserFull.
GitOrigin-RevId: 31bc7325a636db5ac71f7f3bf37ca5e2fb18a160
2019-10-10 19:10:03 +03:00
levlam
783620b9b7 Add td_api::addContact.
GitOrigin-RevId: 6b80aad27805780043a5ca4e7680bbfea65ddaad
2019-10-08 18:12:15 +03:00
levlam
99f4abb249 Update to layer 102. Replace LinkState with is_contact/is_mutual_contact.
GitOrigin-RevId: 33061b18ac72711f4df168fb27497bccb36d3367
2019-10-07 22:51:03 +03:00
levlam
4007386372 Add ChatFull.can_set_username.
GitOrigin-RevId: 1ccb89aaf6df6d9f70167ba1ff42eeef17a2d4cc
2019-09-19 06:27:05 +03:00
levlam
94908d20a1 Add UserFull.can_pin_messages.
GitOrigin-RevId: 11376497b904a9a8f36ef7cab66fd7aeac83ce7d
2019-09-19 05:43:18 +03:00
levlam
7619eaa0f0 Add get_user_full_force.
GitOrigin-RevId: 3486e0097a343b996a943555acfcba5afdbc61a9
2019-09-19 04:21:40 +03:00
levlam
f934ccbd50 Add get_chat_full_force.
GitOrigin-RevId: 7c33e468065589cc79a6c693afb8a9aae0ec9697
2019-09-19 03:58:54 +03:00
levlam
80e3841ec4 Add get_channel_full_force.
GitOrigin-RevId: cc2d1de9fa7859b1cead9562ce1be1ff9113788a
2019-09-19 03:07:44 +03:00
levlam
408a456589 Add strongly typed StickerSetId.
GitOrigin-RevId: 518121f89e3a4c95ab5a2095a9bc2217090911de
2019-09-18 06:55:43 +03:00
levlam
6f4fda224d Forcely load from database info about migrated to channel.
GitOrigin-RevId: db0041bda705667eb3febc6e73679c0e885026a0
2019-09-18 02:57:22 +03:00
levlam
15f31cf23a Add storer and parser for unique_ptr.
GitOrigin-RevId: 2b0f5c8a3e9f7a9343cf9557d10cbf95009ba847
2019-09-18 02:42:38 +03:00
levlam
ae574ceebc Better function names.
GitOrigin-RevId: 7f263a23e4fbc2da9715605599fbb06a3049b9ea
2019-09-18 02:21:29 +03:00
levlam
3377c38073 Store *Full to database.
GitOrigin-RevId: 160369861878befa880e2b4355fd6585977f84dc
2019-09-18 02:14:24 +03:00
levlam
9e51fcdb3f Add source to send_get_*_full_query.
GitOrigin-RevId: 5fdb3cc98f901ddfdcb562ba2c452fc5e2ed13cc
2019-09-15 05:06:11 +03:00
levlam
74219aa2d3 Add td_api::setChatDiscussionGroup.
GitOrigin-RevId: 59c2ec4a0b81973f4672ed2f3ca2a3fd01f36279
2019-09-14 05:35:56 +03:00
levlam
1021269634 Automatically update list of suitable discussion chats.
GitOrigin-RevId: e1ef89b9c0dcf76bf63f508c9806d5764e2b972e
2019-09-13 20:58:09 +03:00
levlam
3846d56680 Add td_api::getSuitableDiscussionChats.
GitOrigin-RevId: 7ba20b857f9d34db4670af12907fe17053047515
2019-09-13 20:25:17 +03:00
levlam
73162dce06 Do not allow to call toggleSupergroupIsAllHistoryAvailable for discussion supergroups.
GitOrigin-RevId: 48afc0ea0af30750bc2cfd42aa36ec48abc33244
2019-09-13 05:51:22 +03:00
levlam
9bf6b2c78a Allow read access to linked channels.
GitOrigin-RevId: 24003a60c80a8e61354ba647fb616e92f88c6e48
2019-09-13 05:40:02 +03:00
levlam
4cd9255643 Temporarily silence warning.
GitOrigin-RevId: 92081ba11c7391b721ca249db6e09e916ef317d5
2019-09-13 04:36:04 +03:00
levlam
867c0f615b Add linked_chat_id support.
GitOrigin-RevId: 220feb41f7557dafc02bf0f04f43b8b15d50e2d9
2019-09-13 04:11:21 +03:00
levlam
779fbb6d83 Update to layer 100. Add td_api::userPrivacySettingShowPhoneNumber and td_api::topChatCategoryForwardChats.
GitOrigin-RevId: 96fd17d9fef8e08b4415ec0d8e13e6cdb37f589b
2019-09-03 17:13:03 +03:00
levlam
6dd224ab55 Pass pts to on_read_channel_inbox.
GitOrigin-RevId: ecfc1333caf77209d388430c4c23bef30e55ca6e
2019-08-27 18:32:39 +03:00
levlam
936a84c025 Update to layer 99. Add support for ChatListType.
GitOrigin-RevId: fdd5de60e479fa9a72975bee8e3cb911f390ec01
2019-08-19 04:51:03 +03:00
levlam
22c88fab89 Reregister device after terminate all sessions.
GitOrigin-RevId: 131a94d04370ccd3ed96ec8f5945ff07df4a67fd
2019-11-17 22:43:10 +03:00
levlam
c1a201fd7f Use main remote location for upload.
GitOrigin-RevId: 1a77b73bf73608e219cbf2a0d888f33b0c406a80
2019-11-17 22:41:28 +03:00
levlam
9fa88eb0ec Remove user/channel debug_source.
GitOrigin-RevId: a9d8fc3841d04e448ee6ef9a34b084d1d302257c
2019-10-18 01:17:46 +03:00
levlam
a2cdc45fc0 Use unique file_id in UpdateProfilePhotoQuery.
GitOrigin-RevId: 80840de6532ef75bd1a2447d81cf4a6ad0e08e46
2019-10-03 17:45:11 +03:00
levlam
b20bd84e22 Do not update local online status for support accounts.
GitOrigin-RevId: b4bce82b6aaa160a2f7fc2897c44e20b05c2030a
2019-10-03 16:44:49 +03:00
levlam
7fdaf3c530 Do not repair participant_count in deactivated chats.
GitOrigin-RevId: 3795e3e3571f4c580b70335470acf826f5b0e492
2019-09-16 03:54:09 +03:00
levlam
5104759c6a Update private chat permissions when user is received.
GitOrigin-RevId: 3fa3df0aa915130eec167607905b76006dd0b706
2019-09-02 20:32:51 +03:00
levlam
cea15d975a Use send_closure_later in on_user_online_timeout_callback to avoid accidental access to MultiTimoeut.
GitOrigin-RevId: b488a006dcbe17d661e18a6e578c08cd070b84ea
2019-08-29 02:17:52 +03:00
levlam
e0d3ad91c5 Do not treat ChatFull without participants as outdated in inactive chats.
GitOrigin-RevId: 5ad01d20dd1b655cfd2ed08f4de20a7d958d8e38
2019-08-16 03:38:53 +03:00
levlam
afae30a32d Fix ChatFull invalidating.
GitOrigin-RevId: 34ae7377315701b5e8d0a877686499f1670b529d
2019-08-16 02:45:42 +03:00
levlam
7435cab3af Update 777000's profile photo.
GitOrigin-RevId: c5f7cd801640947e5418aafbb28cb8fa7747ca17
2019-08-15 23:46:58 +03:00
levlam
500a8a1302 Check read access before repairing user/chat/channel.
GitOrigin-RevId: 273b79368613377d5665292a7e230adf35f1f5f3
2019-08-06 21:50:03 +03:00
levlam
5ca0a72ddf Add td_api::getMessageLinkInfo.
GitOrigin-RevId: 34213fdada780b9bb8fe6a6db5a0de3be097b55c
2019-08-05 12:12:59 +03:00
levlam
2fd851dfe2 Repair sticker set thumbnail if changed.
GitOrigin-RevId: 1b0e2e997338d85249e6eee877ab0483d9826342
2019-07-30 18:43:29 +03:00
Arseny Smirnov
089d73953c FileManager: reload photo on FILE_ID_INVALID
GitOrigin-RevId: defb6736befa35189253f8ac70342be81a607918
2019-07-30 17:42:36 +03:00
levlam
a7005ee358 Add reload_user.
GitOrigin-RevId: f13879bb21e7978f009f5eb8e0f768c089a1061e
2019-07-30 15:10:02 +03:00
levlam
66bf58ca0e Fix rights check in generateChatInviteLink.
GitOrigin-RevId: 241f4368ea9baabe479655959f724eb4b591c9e4
2019-07-28 17:36:25 +03:00
levlam
912ab17351 Add cache revalidation for users, chats and channels.
GitOrigin-RevId: 3377a27326ab76d13c89fbe2eb5ef88ce6564e0b
2019-07-26 00:05:16 +03:00
levlam
527c88ca88 Adjust new chat member status for Bot API backward compatibility.
GitOrigin-RevId: 04bbe38639bde8c7ab0b8bc527b8df833d496c81
2019-07-24 05:33:46 +03:00
levlam
d694b24418 Fix warnings.
GitOrigin-RevId: d3780ae558619ab6beb1fc7dc582285abdd280ca
2019-07-01 19:52:48 +03:00
levlam
bec71af259 Change outbound link to KnowsPhoneNumber if have phone number.
GitOrigin-RevId: 25e1efef971fe168155f54ed899288ac9b1020e5
2019-06-27 19:33:46 +03:00
levlam
dda4c4fc7d Fix check for export chat invite link.
GitOrigin-RevId: aa754d8faa04741ea400450ff58f23ca9443dca8
2019-06-27 19:03:02 +03:00
levlam
d5c7d0a3f9 Better source in on_update_user_photo.
GitOrigin-RevId: 4ba2c1fb4f6b1f98045b7e5ed1ca292a09174bd9
2019-06-27 03:00:42 +03:00
levlam
e23ecdf572 Allow bots to restrict left chat members without trying to add them.
GitOrigin-RevId: b2884da3cdc524634b23d1d149bdb66bc6fa206d
2019-06-20 20:34:08 +03:00
levlam
a19fa6b724 Add debug logging.
GitOrigin-RevId: 0c66f0ab330c4ada8f225f0516b64d4aeba62262
2019-06-20 17:18:16 +03:00
levlam
666e668163 Add support for is_scam mark for users and channels.
GitOrigin-RevId: f34b2ed15d3cb01f3a3da51673e8aa0ac98ad874
2019-06-18 16:41:53 +03:00
levlam
9ee52310fb Fix processing of inaccessible users.
GitOrigin-RevId: dea00d3a71e4f85b44c73c6620c2edaf39bddf17
2019-06-17 04:36:27 +03:00
levlam
4a8411329f Add source to ContactsManager::do_update_user_photo.
GitOrigin-RevId: 086ca18898448cbcd44977965a0f8f0ddc799ead
2019-06-17 03:39:00 +03:00
levlam
cf4433dc52 Use get_photo(telegram_api::Photo) whenever possible.
GitOrigin-RevId: 6ab86f8a10f8a80584cd7a4ada4fbbda19df9d96
2019-06-17 02:41:57 +03:00
levlam
bd13368fa8 Fix chat invite link photo.
GitOrigin-RevId: bf4fa46201598412804880dd3c19d800c93acd5e
2019-06-17 02:00:54 +03:00
levlam
8117f0fb39 Support min_access_hash.
GitOrigin-RevId: b2de0f02f75683a08961cdb1c0ceb719574a9e67
2019-06-17 01:35:12 +03:00
levlam
30e96aa8c8 Improve applying chat full participants.
GitOrigin-RevId: 4280f3daa15b4120e81eb3891adced8ff5f97c1c
2019-06-13 00:21:30 +03:00
levlam
4c781ebb7b Update layer to 98.
GitOrigin-RevId: 7bc09a6ec637f12b2f90bc1fb6d82903feffc376
2019-06-08 12:26:35 +03:00
levlam
b4b9778947 Add td_api::chatMembersFilterContacts.
GitOrigin-RevId: 2f8f18da88a0de2c5df5bd1d0207d424b6b4e89b
2019-05-12 21:49:21 +03:00
levlam
b641382eab Support pinned_message version in basic groups.
GitOrigin-RevId: 75a011aa0ad138f9bf165870603c1be82038bbc8
2019-05-12 21:19:03 +03:00
levlam
90ab672030 Fix lost promise in ReportChannelSpamQuery.
GitOrigin-RevId: 61abcd89b6753d6f863f1dd72bc45b30a1f09ec7
2019-05-09 15:22:47 +03:00
levlam
441d224878 Skip non-contacts when searcing contacts on channels.
GitOrigin-RevId: 9db95ac20b76e3f274eb7dbc758e00f3b84d2cd4
2019-05-04 03:15:49 +03:00
levlam
eed517a2e7 Fix bot permissions.
GitOrigin-RevId: 86929755cff1673c3404beeff2a6bfbfcb2e2365
2019-03-22 18:32:06 +03:00
levlam
e83184f9fc New chat permissions checking.
GitOrigin-RevId: ef555c6cb407efbf3092cda554b1992155c6e1e4
2019-03-22 18:18:46 +03:00
levlam
046be9b785 Better apply_restrictions for administrators.
GitOrigin-RevId: 3ea51eefe47c54cddf4d6880fd62869f94ac5434
2019-03-22 17:04:01 +03:00
levlam
5e69f957f3 Add get_cha{t,nnel}_permissions.
GitOrigin-RevId: 7d00023ed7497f89cc3895c9a1d4f267f7332922
2019-03-22 15:23:44 +03:00
levlam
c636408a7a Remove unneded mutable specifiers.
GitOrigin-RevId: 528550993874adb2ff29f9f88273339937919c8b
2019-03-20 21:13:45 +03:00
levlam
9b8a5438be Add td_api::setChatPermissions.
GitOrigin-RevId: ce072b20283e5a1887bd94fea33ad4d0cb4ec5b9
2019-03-20 20:58:13 +03:00
levlam
e71b749a79 Add updateChatDefaultBannedRights support.
GitOrigin-RevId: 1e938066789b61f5f14003c268a62965fcc31a30
2019-03-20 16:32:27 +03:00
levlam
454d8d3987 Add td_api::chatPermissions support.
GitOrigin-RevId: 38cc232035e54665e140772b13316c31ecc38df6
2019-03-20 15:28:06 +03:00
levlam
ada302aaf2 Support default restricted rights in channels.
GitOrigin-RevId: 71ca596fcaaa31217bd1e8431d3e6202ebcd43f0
2019-03-19 18:55:10 +03:00
levlam
e6d968963b Support new rights in chats.
GitOrigin-RevId: 0cfc8de697a1eed2a323907c36b36b6b634e42b6
2019-03-19 18:13:16 +03:00
levlam
bc736d0cc5 Add supergroupMembersFilterContacts.
GitOrigin-RevId: 56dee642cebc5f71918be82219a39d4ad3e4f615
2019-03-18 05:36:47 +03:00
levlam
ed3e4b7d67 Add basic group description support.
GitOrigin-RevId: 030f1a2c149fd085f90a4153e7c76a6adb14e00c
2019-03-18 05:24:25 +03:00
levlam
3ecf990ad6 Update layer to 95.
GitOrigin-RevId: 0d6b470b6ca6f72b5b87fbd899aaeae8892f8834
2019-03-15 16:52:55 +03:00
levlam
547720ccf6 Remove export dialog invite link admin right.
GitOrigin-RevId: 0960bf0f6ecac10e714769089a0fbda347b459d8
2019-03-08 04:04:30 +03:00
levlam
a4d89470f2 Do not warn on deleted users returned as administrators.
GitOrigin-RevId: 8facbb4a76bf489ce59c9e34d98dc49c6112edb6
2019-06-06 18:30:18 +03:00
levlam
7b0be02503 Copy BufferSlice before saving user profile photo.
GitOrigin-RevId: f4a4e8dcae1eeea6d8111705d3cd4fbaaa805bf4
2019-06-06 18:09:48 +03:00
levlam
1ed97b8539 Do not include query and anchor to invite link hash.
GitOrigin-RevId: 08d499417bfb95dfe2a4e41099471d826b3bc848
2019-06-05 04:22:27 +03:00
levlam
0181982749 Improve getting groups in common.
GitOrigin-RevId: 211d8706823b9aa509af00855083a1981a0a963a
2019-06-05 03:14:54 +03:00
levlam
21dee3b1d9 Fix g++9 warnings.
GitOrigin-RevId: 5f0565bfaefff9bf41f372f2f249489650985fae
2019-05-01 20:03:27 +03:00
levlam
654010d8f4 Trying to not send GetUsersQuery while closing.
GitOrigin-RevId: 75e44b200ec12becb82284607bba44b6d2d05fd8
2019-04-28 01:30:55 +03:00
levlam
6c34030d51 Improve logging.
GitOrigin-RevId: 3cd0ce11ea05c9d8eb0074f800c7538cb40b6139
2019-04-22 02:42:47 +03:00
levlam
a26d827a38 Improve logging.
GitOrigin-RevId: 90530bd13523ad525d93d67e0634524c1459c8e9
2019-04-22 01:25:18 +03:00
levlam
c37d0d98dd Silence expected warning.
GitOrigin-RevId: a81ef99ffebdf41067318920110fbd7fb554da92
2019-04-18 17:04:05 +03:00
levlam
0516dfaa32 Better error log message.
GitOrigin-RevId: 5076d85dd60c8d08d7537895a6d925c90f5f0aea
2019-04-18 16:37:16 +03:00
levlam
cb856f55a1 More consistent log out checks.
GitOrigin-RevId: df749bf0a8234d5ed537b1a7200d4a3ee037eb7d
2019-04-11 23:32:19 +03:00
levlam
078417d423 Add mtpeer.access_hash parsing in push notifications.
GitOrigin-RevId: bba57f1a73627383a2e363c821475cdc6a3dcaad
2019-04-04 21:50:26 +03:00
levlam
606b427673 Invalidate cache of getGroupsInCommon when count is changed or in 1 hour.
GitOrigin-RevId: e57edb01d3fe3a21e208e8247ca666284a755bcb
2019-04-01 22:38:17 +03:00
levlam
508889fadf Store sender_user_id in message push notification.
GitOrigin-RevId: e6dbf304266c63a92e5949a1ee48444f8c0e958f
2019-03-30 17:59:35 +03:00
levlam
2facb494d3 Add new notification type for push notifications.
GitOrigin-RevId: 47c4527806cab7a43bf4375dc2a2aeeab02fc7c1
2019-03-29 00:08:57 +03:00
levlam
27f6634c50 Fix total_count when receive full member list.
GitOrigin-RevId: 65d757a8489d5f5207e43d267b7177cc97c95950
2019-03-25 19:18:04 +03:00
levlam
f9a0b34cb2 Disallow to report support accounts.
GitOrigin-RevId: 40657f51e7b4ca90e930b406d4903e132865babd
2019-03-17 18:09:28 +03:00
levlam
6209520db6 Decrease local online timeout to 30 seconds.
GitOrigin-RevId: c0a0a1c1b308898753a5d189e1bd43856412d411
2019-03-15 21:56:10 +03:00
levlam
f20e40990e Remove unused variable.
GitOrigin-RevId: 2f1d515fefb191dc364397ee36716d249d3af0fe
2019-03-15 03:47:09 +03:00
levlam
d6c5dda880 Fix spelling of inaccessible.
GitOrigin-RevId: d28c4c60c365cd453ec89d34519b75abaed169b5
2019-03-15 03:19:10 +03:00
levlam
0c89d34007 Use correct update date for typings; ignore too old typings.
GitOrigin-RevId: a1dc65a74bfbc8519591b0ca6739cf04ad58b2bc
2019-03-15 03:16:44 +03:00
levlam
3e0fb81e09 Bring users online locally after typing or sending/editing a message.
GitOrigin-RevId: 2bc4e0c29083f1dca6277498118f1dd6932ccda3
2019-03-15 02:29:36 +03:00
levlam
f0d6892453 Add get_user_was_online method.
GitOrigin-RevId: 64e6acd5295b4679f0badb33c419c727a4a2c57c
2019-03-15 00:57:09 +03:00
levlam
706144361d Fix updating chat online member count.
GitOrigin-RevId: 9b528ba5ea6524be13baddecabb692c96067caba
2019-03-13 17:18:40 +03:00
levlam
b6bce6b672 Fix updating member count in channels.
GitOrigin-RevId: bd79e392040c03e2c469cc77c3a1481464824aaf
2019-03-13 01:01:24 +03:00
levlam
3fb372f2e8 Fix warning.
GitOrigin-RevId: b868b965e8ce8c44540ace16ebde385b3def0076
2019-03-13 00:16:22 +03:00
levlam
692f9fcf1a UpdateChatOnlineMemberCount fixes.
GitOrigin-RevId: ba2ab62da3e665e8e48427bd7607e423aa18e32f
2019-03-12 23:46:43 +03:00
levlam
3c61017d87 Remove unneeded channel participants cache.
GitOrigin-RevId: f5aaf86dc10499b08c05dfb756901a6a51d9abcc
2019-03-12 22:15:33 +03:00
levlam
e77a6d8397 Repair online member count in small supergroups by getting they member list.
GitOrigin-RevId: bf52347560b19668c302767498b63b55800f3779
2019-03-12 22:05:33 +03:00
levlam
9ff02e7435 Speculatively change cached supergroup member list.
GitOrigin-RevId: 7d908f39f10b8480310960c54ec2610febd0b018
2019-03-12 17:52:10 +03:00
levlam
a893653ba6 Pass list of members in speculative_*channel_participant.
GitOrigin-RevId: 765ef5abbb2a2c139810dda32aa1e2c1fe5e4009
2019-03-12 16:20:53 +03:00
levlam
e406d6ea41 Update dialog online member count when receive member list.
GitOrigin-RevId: e1178f3c5dabc183c80099d0e98e0c0d3cf56762
2019-03-12 14:52:37 +03:00
levlam
9aaae62fe3 Update channel administrator_count if full list of members is received.
GitOrigin-RevId: cff244ff217f96562f80bde84d80cdac6e75b53d
2019-03-12 14:03:33 +03:00
levlam
d4fb13d856 Update channel administrators and bots, whenever full member list is received.
GitOrigin-RevId: b0484ba4f93cc11e78b64f81412db494d821da62
2019-03-12 13:03:42 +03:00
levlam
d52472311b Update administrator_count after getting administrators list.
GitOrigin-RevId: a94efd56f468c473c941b9c3f50369218925c695
2019-03-12 12:46:52 +03:00
levlam
3c8fd02d07 Add sanity checks for get_channel_participants results.
GitOrigin-RevId: 3bc0ac414e7b6ca18631528ff069564ac9862409
2019-03-12 12:38:37 +03:00
levlam
d3a82b449c Update channel member count when receive member list.
GitOrigin-RevId: 6f5b2f90cbf0085b7ff68f80bf0529fbf3dc1bf3
2019-03-12 11:58:37 +03:00
levlam
1d369e1dca Fix upload priority fot thumbnails and profile photos.
GitOrigin-RevId: 12698756069a92707369a0efef1cd46f9e280758
2019-03-12 10:38:05 +03:00
levlam
457650ed74 Add update_dialog_online_member_count method.
GitOrigin-RevId: 5195f98ab61692355fce12e5ac804cdb2ff66d1a
2019-03-12 03:46:44 +03:00
levlam
dc06fcb7fb Do not count deleted users and bots in online member count just in case.
GitOrigin-RevId: 9c4b5fd5df66b8e963b5ae64dd01a6d9e1b4adc6
2019-03-09 18:32:43 +03:00
levlam
0a04a466ef Send updateChatOnlineMember count when a member goes online or offline.
GitOrigin-RevId: e58d65fb71ce4b2a407101e2a494da05106b0b9f
2019-03-05 15:49:10 +03:00
levlam
285b590058 Disable online member count calculation for bots.
GitOrigin-RevId: a53e92a44fab9375c9af318c08d119d398e2e0a6
2019-03-05 07:00:18 +03:00