Commit Graph

156 Commits

Author SHA1 Message Date
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
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