Commit Graph

1643 Commits

Author SHA1 Message Date
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
e72a2c881f Return back poll data option values.
GitOrigin-RevId: 9c90be7c911b734fbb363332e1813cd526d98147
2019-03-12 13:06:50 +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
cda10ecd83 Fix applying results of setPollAnswer.
GitOrigin-RevId: 072da15baeefd13db4d0e188a51f2efff39d81f9
2019-03-11 19:06:53 +03:00
levlam
2a8b6abebc Fix call to get_channel_difference.
GitOrigin-RevId: ff64cd9b89385ed05b67916b4804554e5e299c9b
2019-03-11 17:44:37 +03:00
levlam
3d288d8e9b Possibly fix recursive calls to add_message_to_dialog.
GitOrigin-RevId: c9ec21278582bc91beb6e2815f16b2f89673f587
2019-03-11 17:40:19 +03:00
levlam
1046d02628 Add source to get_message_force.
GitOrigin-RevId: 889869e4ddee259c1acf1f4ddd40bbeeb06a5aa3
2019-03-11 16:06:21 +03:00
levlam
84060b6084 Regiater only server polls.
GitOrigin-RevId: e6ff1c4d7916a8ce07e45ae95a0458330c4ebcf0
2019-03-11 15:27:28 +03:00
levlam
6da8565b7b Add CHECK debug.
GitOrigin-RevId: c967e0cd0270200c9202afbc98ec8270664a9211
2019-03-11 15:15:57 +03:00
levlam
c4d114a70c Fix chat list perloading in get_dialog_notification_settings_exceptions.
GitOrigin-RevId: b4dcf2a1ab0a021acbe976d821668cbdc6bdccbd
2019-03-11 15:09:55 +03:00
levlam
438d39e4de More fixes for getting results of being voted poll.
GitOrigin-RevId: a1a8b74d3fd42a1bb6b68e7e6fbd5a3a57026a40
2019-03-10 22:06:19 +03:00
levlam
7143ac4070 Fix vote percentage.
GitOrigin-RevId: 9e847cdd0d848f9b1cd29415af08b173fb27c2e1
2019-03-10 21:49:10 +03:00
levlam
8476dd88af Update layer 91.
GitOrigin-RevId: 0374bd4e7e4aa9587dc5ceb6b3ecba4f09c03517
2019-03-10 21:30:15 +03:00
levlam
2f61afab89 Add PollAnswer.is_being_chosen.
GitOrigin-RevId: 4465a640e3c4e687cb25f2dbf5705d00fe93d4c3
2019-03-10 14:03:19 +03:00
levlam
2e520364ad Randomize poll polling timeout.
GitOrigin-RevId: 7b8980da0fc1193361b729189e663d9a89456e3b
2019-03-10 11:00:14 +03:00
levlam
ac95df0213 Ignore possibly outdated poll results.
GitOrigin-RevId: 3d4c8b4a429ba3933ca2e22f08aaefc62a3b1691
2019-03-10 10:57:15 +03:00
levlam
699bef0781 Return result of GetPollResultsQuery through Promise.
GitOrigin-RevId: fafc25acc4944066efb21f9dcc3000631fee0912
2019-03-09 21:07:07 +03:00
levlam
3d56c6dac0 Lowercase server language packs code.
GitOrigin-RevId: f1736814fb9d4f6960d6beb5cefebedbabe93183
2019-03-09 19:45:45 +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
5707d5b277 Handle null static requests.
GitOrigin-RevId: 4247e69ad556693fdc0084b244c4bb9804a8cc1a
2019-03-09 18:30:25 +03:00
levlam
2354a05602 Fix preloading of a previously pinned message.
GitOrigin-RevId: 2dd22b8522d94d443f8e97b54a3c2baf9d6eea63
2019-03-09 18:27:02 +03:00
levlam
87eaeb2db2 Fix division by 0 in Bitmask::get_ready_prefix_size.
GitOrigin-RevId: c16d3a9a2622d31c3ab186c350d67466e4d99bdc
2019-03-09 17:31:52 +03:00
Arseny Smirnov
347a22858c Files: fixes
GitOrigin-RevId: 5469a6c26fbb187fd52ddaf1c8bacfae4ddddbe9
2019-03-10 12:31:24 +11:00
levlam
65f0f78574 Deprecate Log methods in C++ and JSON interfaces.
GitOrigin-RevId: d327c2400432b309d52ed23b04e47ba6adb46682
2019-03-07 01:28:35 +03:00
levlam
48077eb861 Fix setting disable_top_chats option before logging in as a bot.
GitOrigin-RevId: 0fee9765a3bdcc56dd81a7e75b2dc2e9745a70bb
2019-03-06 01:06:33 +03:00
levlam
32ac05693b Hide voter count in non-voted polls.
GitOrigin-RevId: d15190256271ad0e63ebaa83805778f8c8716df1
2019-03-06 00:12:04 +03:00
levlam
f6a3e9037f Add vote percentage to poll options.
GitOrigin-RevId: e53ba947dc781a8db031f06bd69d03b9b9956f77
2019-03-05 23:21:10 +03:00
levlam
8fcb64e579 Compare local settings in getChatNotificationSettingsExceptions.
GitOrigin-RevId: e0ad2683e85f1a2d74206da01dfc9e60248e611d
2019-03-05 17:15:17 +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
Arseny Smirnov
986ce38998 PartsManager: recalc streaming_ready_size_ when streaming_offset changes
GitOrigin-RevId: e2b82154cbf9ef1f1bf4ed322f518eb0f4ead0cc
2019-03-05 10:48:50 +03:00
levlam
b9d73b5c47 More start_up and bots fixes.
GitOrigin-RevId: 1f72829332cea0b863cb7813b490782f0ed39db3
2019-03-05 07:35:17 +03:00
levlam
285b590058 Disable online member count calculation for bots.
GitOrigin-RevId: a53e92a44fab9375c9af318c08d119d398e2e0a6
2019-03-05 07:00:18 +03:00
levlam
8bb1747ef6 tg_cli: fix gmf.
GitOrigin-RevId: 3b6fe4514fc06bf65ce1200ab9f2f8603c65ef90
2019-03-05 06:45:14 +03:00
levlam
063e8872df Fix notification usage for bots.
GitOrigin-RevId: 4645b1c91e5bb1e6a7ef5429efe690c52a8ee257
2019-03-05 06:01:49 +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
b20d9ba6d6 tg_cli: add gmf.
GitOrigin-RevId: 6fb0ca0dc371e650bc42f6bd86601ae9d1720a26
2019-03-05 02:06:48 +03:00
levlam
1ee2b63230 Fix streaming_ready_size_ calculation.
GitOrigin-RevId: 62ad330749e88188697de7f23b525ac9e426d780
2019-03-04 00:37:25 +03:00
levlam
b13903646e Make publish_date field name consistent.
GitOrigin-RevId: 0f8df2c27e85195c5a468c49e9574b87ff3ac97c
2019-03-03 07:07:15 +03:00