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 |
|