Commit Graph

193 Commits

Author SHA1 Message Date
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
levlam
d038c6b5c4 Update Chat online member count on any participants change.
GitOrigin-RevId: 6049a003d73e86d2bb30b9364a07aa3050be3a7f
2019-03-05 05:18:31 +03:00
levlam
f1419395df Add user.is_support flag.
GitOrigin-RevId: 6c1774d309eefdb20e75e2b01e07a4738efcde81
2019-03-01 05:35:01 +03:00
levlam
80edd0b059 Add UTF-8 checks for user names after they are loaded from database.
GitOrigin-RevId: e99c0b2a60791c683ad4c72b224cf6123598f756
2019-02-27 02:41:16 +03:00
levlam
bb5ffc0c8c Channel statistics support.
GitOrigin-RevId: 39d17de81087c9789b6c717cf1ed5f01edc6360b
2019-02-26 23:37:59 +03:00
levlam
f1519230c9 Update member online count from time to time.
GitOrigin-RevId: 8b9e0f4d922a17c0f14755289a25e91b1ab4c6fc
2019-02-26 18:24:46 +03:00
levlam
8795d002de Add updateChatOnlineMemberCount.
GitOrigin-RevId: 3c4a21b924acc4c5ff9af66a4d8c9d13b6effd26
2019-02-26 03:24:33 +03:00
levlam
2c2866b5fc Add simple QueryCombiner.
GitOrigin-RevId: b863a06adff6ed010424ca42be338c410a487ccb
2019-02-25 06:08:18 +03:00
levlam
e22d3b7c28 Return result through Promise from GetFull*Query.
GitOrigin-RevId: 40849a7f4a1febaa35c36b811717b48932da2bff
2019-02-25 04:16:41 +03:00
levlam
6787973944 Simpilfy handling of *Full results.
GitOrigin-RevId: c084e4c389d559b31e74fafc1d4a8cd05983700a
2019-02-25 03:41:19 +03:00
levlam
58f63d36d6 Fix includes.
GitOrigin-RevId: d633dc842591cd28a03f9fba6974a171926ed229
2019-02-22 23:15:43 +03:00
levlam
93494cf048 Fix log messages style.
GitOrigin-RevId: f99e2e838220826d3dea7fdc33c43ac9918a5efd
2019-02-21 18:58:20 +03:00
levlam
16d7278db9 Improve logging.
GitOrigin-RevId: 00d69bf29fb339c0eaaffbf9150bc2285b56fd3b
2019-02-20 05:37:04 +03:00
levlam
9d3bfaa979 Add source to on_update_dialog_notify_settings.
GitOrigin-RevId: a3b6d44d6e4b07ab05f564180ad071c15a6c49b6
2019-02-20 04:30:22 +03:00
levlam
a73c383c66 Guarantee session order in GetActiveSessions.
GitOrigin-RevId: 9d625e4d9a1c8fb5e2ff5d9aff3591e84ac842f3
2019-02-19 22:36:26 +03:00
levlam
d98aaa571f Add td_api::getChatNotificationSettingsExceptions.
GitOrigin-RevId: f2ea5ced7cb2c62841dd961c4ce433f39c202f92
2019-02-14 21:44:20 +03:00
levlam
ec692e98e4 Remove some errors logging while closing.
GitOrigin-RevId: 65e4ca3d0748b4d59511d9024e2eff1367e13cf7
2019-02-14 18:36:16 +03:00
levlam
e7fc6f4d58 Update layer to 90.
GitOrigin-RevId: d105e3fe4c4c16764a8062915ad20bb9b8e3f815
2019-02-13 19:05:34 +03:00
levlam
dd398c5968 Fix formatting.
GitOrigin-RevId: 144f91ea1ad0a1f9a8e5e08c4c10f238b066be47
2019-02-13 00:28:47 +03:00
Arseny Smirnov
20bfcaa979 Use LOG_CHECK where it is necessary
GitOrigin-RevId: a8bd17cc2ee6e43dcea52bb25aef9ee1f91c7ec4
2019-02-12 19:17:20 +03:00
levlam
ed25f88c19 Prefer InputFile over remote location in get_input_media.
GitOrigin-RevId: 01db2a0669b966ddac59b7f18b62f154cb54a427
2019-02-12 04:50:30 +03:00
levlam
6a43a9e91e Support file reference errors in SendMultiMediaActor.
GitOrigin-RevId: ef25dd8bedab0998db1e57572e46e072c5e2e374
2019-02-08 17:54:23 +03:00
levlam
a43296fce1 Update layer to 88.
Add webPageInstantView.is_rtl flag.
Add callStateReady.allow_p2p flag.
Add userPrivacySettingAllowPeerToPeerCalls.
Add session.is_password_pending flag.

GitOrigin-RevId: 594dc91a0c38840a224315ca841f74b47e1bf0c0
2019-02-05 01:08:15 +03:00
levlam
591576e6a4 Support pinned messages in private and basic group chats.
GitOrigin-RevId: b08ba37a6b27f871e394b5e4ac1864766f046134
2019-02-01 15:19:32 +03:00
levlam
7542612098 Fix some includes.
GitOrigin-RevId: 47d6bcd57e12314cc46c8f23ef10c10cea04fdcb
2019-01-31 05:05:40 +03:00
levlam
346202fbaa Fixes for delete_file_reference.
GitOrigin-RevId: 15ffa944a037d34954ce5e7b0cea22131e1e976e
2019-01-31 02:57:14 +03:00
levlam
996869d4ca Implement store/parse FileSourceId.
GitOrigin-RevId: ff0d80bf2a8d479dae0cdca2c806a9731ff499d9
2019-01-31 00:37:38 +03:00
levlam
595eb119d7 Repair file_reference in UpdateProfilePhoto.
GitOrigin-RevId: 1edb98b56d2af603ac51d7ba6ee9e6cd08e12595
2019-01-29 02:32:26 +03:00
levlam
6e7f33b909 Better constant file references.
GitOrigin-RevId: 81ff0344eab5c584c57eb88e5cd5210641f597c7
2019-01-25 17:39:11 +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
937db792cb Create file sources for channel and chat photos.
GitOrigin-RevId: c3660edd78b7ad07aaa7e6c5e238c2e2e30f2b11
2019-01-20 06:34:47 +03:00
levlam
e5400074ce Move FileType to FileType.h.
GitOrigin-RevId: 7e35c0f30b7755755b0583704dcfe344cc28d117
2019-01-20 00:54:29 +03:00
Arseny Smirnov
a75726d77a FileManager: file references draft
GitOrigin-RevId: 8d37ee4b5520497df08f49e598ae91825e74e1ea
2018-12-05 12:32:31 +03:00
levlam
6f813b25ac Add reload_chat/reload_channel methods.
GitOrigin-RevId: 82f650328672dcde337f692d986a338e48711d91
2019-01-15 01:38:17 +03:00
levlam
303a006fb3 Add reload_user_profile_photo method.
GitOrigin-RevId: cc0e9d51b98adcb359310a239e707a7ef5e0523a
2019-01-14 23:04:53 +03:00
levlam
e22e23a5ff Add source to on_get_user and on_get_chat.
GitOrigin-RevId: a3f187dc0d7d981df6ca3f2566f66678b4ad4774
2019-01-12 06:48:39 +03:00
levlam
68cc159a54 Fix updating user links.
GitOrigin-RevId: 9c4098524f6f3f817bae9d4eb33b244282dd378e
2019-01-10 22:02:45 +03:00
levlam
ccb2649306 Better removing of reply markup after bot has left.
GitOrigin-RevId: 11971b4485fc89fc663afaf5f30ef0f4a88e6d2e
2019-01-07 19:30:09 +03:00
levlam
3c6008aa9c Fix call to on_update_secret_chat_state.
GitOrigin-RevId: 110b1b4fe066ae3cfa064baa9d861653cb284222
2019-01-07 18:08:01 +03:00
levlam
5438119bb4 Fix Global.h and TdDb.h includes.
GitOrigin-RevId: 89fa1ee3e8071ad3f27687f79d1a52de113f9705
2019-01-06 22:59:17 +03:00
levlam
ea06aa19d6 Forward-declare BinlogEvent.
GitOrigin-RevId: 4ea183c04ec8e5ffd0c2851db399b2a2155557ea
2019-01-06 22:11:02 +03:00
levlam
0403c58c73 Minor.
GitOrigin-RevId: 2d1cd971e34a79011c6e658657f7a7b1329195ca
2019-01-06 06:16:29 +03:00
levlam
78a0a37afb Remove contacts by phone number in changeImportedContacts.
GitOrigin-RevId: 1ac5998d3d01b289761aa62e131589163e1b5194
2019-01-03 01:39:21 +03:00
levlam
d542182b07 Fix sending of updateSupergroup after unban.
GitOrigin-RevId: 55b4fe17ea72069814fbbf3a3994cb4ee122df46
2019-01-02 01:32:50 +03:00
levlam
da8d4ceab1 Better setChatMemberStatus.
GitOrigin-RevId: eda67ca9fc959c9b94184ca952af8186aaf8d2de
2019-01-02 00:14:03 +03:00
levlam
eaebfad034 Update copyright year.
GitOrigin-RevId: 359e2b43322222922c44c430d3814b0a4c778dc6
2019-01-01 01:02:34 +03:00
levlam
61b770c5a7 Add ContactsManager::after_get_difference.
GitOrigin-RevId: 9fdea971dd5320da59b0aaeba45bff0c3ea2fc0e
2018-12-12 06:00:11 +03:00
levlam
7627dc27a7 Give different names to MultiPromise actors.
GitOrigin-RevId: 4277553637ca342bc80af07ddcdf013eec506221
2018-12-12 02:48:56 +03:00
levlam
6d37f492e3 Support notifications about new secret chats.
GitOrigin-RevId: 32d9c4c87228c0a70aa6753f0563b52c28cab97e
2018-12-04 19:40:12 +03:00
levlam
7d565e359d Improve clean_filename behavior.
GitOrigin-RevId: da29b1a87a27b6bcb7651ae1b261d44dcf18849f
2018-11-27 04:24:43 +03:00
levlam
64c7362fd8 Calculate was_online_local/was_online_remote.
GitOrigin-RevId: 774c9172e2274f998daf244dcb8bfdea7c4c2448
2018-11-16 01:48:56 +03:00
levlam
a86a9d2a00 Add support for updateNotificationGroup and delaying of updates.
GitOrigin-RevId: 28974259dcaf97d2ddc7b303c7609bd99b846089
2018-11-15 18:58:33 +03:00
levlam
95ff033aae Silence 401th error for ordinary users.
GitOrigin-RevId: 3a371adef8cfc50609a9320c43a0c8cf5d9dd403
2018-11-07 21:26:21 +03:00
levlam
6a402ee0a3 Add temporary binlog fix.
GitOrigin-RevId: bf91645a6646f39fdbd36ac1351fdce2ae5b7763
2018-10-28 18:21:35 +03:00
levlam
5b603d0dd7 Fix misprint.
GitOrigin-RevId: 22e684341c9484d9f02696651cc3997983992cc8
2018-10-22 02:00:34 +03:00
levlam
2540555ae5 Remove source from get_my_id.
GitOrigin-RevId: 623c24323b55937866841c4b0f32b109c513983b
2018-10-08 17:21:56 +03:00
levlam
0c64b2cf9c Fix some spelling.
GitOrigin-RevId: 99848b019fce855bf50380ce6ffc2865a007161d
2018-10-07 23:40:58 +03:00
levlam
4d8a832b7d Reduce more cpp source code interdependecies.
GitOrigin-RevId: e80ac4246299a5a3bf515977c24d281055fcadb6
2018-10-02 00:24:45 +03:00
levlam
f948956bf7 Use td::unique_ptr instead of std::unique_ptr whenever possible.
GitOrigin-RevId: 424beb72dc62efdefdbffb75f1036ba9417f84cb
2018-09-27 04:19:03 +03:00
levlam
a3b6aca07d Speculatively update cached channel administrators.
GitOrigin-RevId: b30a7bbf1ec74a446bf77245772236b94be135cb
2018-09-25 18:32:39 +03:00
levlam
1362f0bd0a Make ContactsManager::get_current_state const.
GitOrigin-RevId: b86cb9e05bed37fff06c77f235fc3039c8626334
2018-09-21 10:34:15 +03:00
levlam
f8894dbff9 Add ContactsManager::get_current_state.
GitOrigin-RevId: 108cab6899368e264684aab79d488384be968e48
2018-09-20 21:37:35 +03:00
levlam
2d05be04dd Follow new server-side limits on first/last name and title length.
GitOrigin-RevId: 89fe4eb85c42859974142fd163ea9fd062fde459
2018-09-17 07:00:19 +03:00
levlam
f7405f8f86 Fix invalidating of chat invite links.
GitOrigin-RevId: d32dc810da18f379ad95b1d0ed07f0acdb2af700
2018-09-12 22:30:25 +03:00
levlam
5379348651 Improve some logging.
GitOrigin-RevId: ec0a2f01c45b1ae7a74cd407f5c867e609e47d1f
2018-08-28 05:52:43 +03:00
levlam
8283d04942 Auto log in if password was removed just after code checking.
GitOrigin-RevId: f01d53b5d93ec20690a4099d8be1d60d6b9ca3c1
2018-08-13 01:44:53 +03:00
levlam
c01dcf9a99 Add temporary ignoring of duplicate user/channel log events.
GitOrigin-RevId: ecd17421d9f2c3591ce4a4d84970949954f8496e
2018-08-01 17:10:07 +03:00
levlam
15828a2329 Add members filter to searchChatMembers.
GitOrigin-RevId: 8d553d6c73e32446eaa7e6ebb5bdf562458d258d
2018-07-20 03:00:17 +03:00
levlam
46ebd1b240 Include SqliteKeyValue only in cpp.
GitOrigin-RevId: b89c988f6da1d480f68ecb71ef5390e9376faac1
2018-07-18 04:11:48 +03:00
levlam
8501dbedf8 Fix check_dialog_username.
GitOrigin-RevId: 47dd0a62c10f0bc8e91748f8197676f7b72aab2e
2018-07-10 16:56:37 +03:00
levlam
ecc774367b Add add_channel source debug.
GitOrigin-RevId: 9785f3f33bf7cd55650b9874e6167620e2a6ce85
2018-07-08 16:32:05 +03:00
levlam
e2a90b9edf Fix some string to Slice conversions.
GitOrigin-RevId: 79ddee1a90c633cc1b1df5c8e3d9917027bad0f3
2018-07-08 02:47:46 +03:00
levlam
2f60d194cb Fix formatting.
GitOrigin-RevId: d9c6ce7fd301a1871fea0f1b19ffdeae8328edfb
2018-06-28 22:20:48 +03:00
Arseny Smirnov
80d4292493 BinlogHelper:: -> binlog_
GitOrigin-RevId: 94cf4585c4f61be2929c5a7cd1a3628b911bc4c5
2018-06-28 16:52:40 +03:00
levlam
aa13a57a3c Update layer to 82. Contact.vcard support.
GitOrigin-RevId: 302d65351cfaeb6b4e82c594565ab1aef18b2a42
2018-06-26 00:10:53 +03:00
levlam
fed222e11a Add add_user debug.
GitOrigin-RevId: 7e2bb3187f278cc664a720d1ce1d7689ba69d5d9
2018-06-25 04:06:20 +03:00