Commit Graph

4503 Commits

Author SHA1 Message Date
levlam
aee5806593 Improve error message. 2020-12-28 18:57:41 +03:00
Andrea Cavalli
7ef40eea0c Group call patches
Add disable_group_calls boolean option
Add memory_cleanup and memory_stats to FileReferenceManager
Add memory_cleanup and memory_stats to GroupCallManager
2020-12-28 16:10:05 +01:00
levlam
584b5352ca Replace error message on closing. 2020-12-28 17:18:17 +03:00
levlam
8139e0d560 Update forward_count and thread reply_info only after updateNewMessage is sent. 2020-12-28 16:58:50 +03:00
levlam
6af4338f8b Add MessagesManager::update_forward_count. 2020-12-28 16:21:39 +03:00
levlam
5f02a34c34 Don't hide reply info for yet unsent messages. 2020-12-28 15:19:56 +03:00
levlam
2c8cfc561c Add is_speaking flag for recent speakers. 2020-12-28 14:19:29 +03:00
levlam
1f9d173afb Automatically check whether group call is still joined. 2020-12-28 00:30:27 +03:00
Andrea Cavalli
5a480a10a6 Update tl-parser 2020-12-27 11:56:47 +01:00
Andrea Cavalli
24687809e9 Update tl-parser 2020-12-27 11:41:43 +01:00
Andrea Cavalli
3083b167bc Update tl-parser 2020-12-27 11:41:22 +01:00
Andrea Cavalli
6012baeb3e Update CMakeLists.txt and tl-parser 2020-12-27 11:40:08 +01:00
Andrea Cavalli
23725f0c34 Update CMakeLists.txt 2020-12-27 11:31:09 +01:00
Andrea Cavalli
2029fe7650 2020-12-27 11:28:48 +01:00
Andrea Cavalli
8231ceea60 Update CMakeLists.txt 2020-12-27 11:14:41 +01:00
levlam
1d155a8492 tg_cli: add get_chat_report_reason. 2020-12-26 21:53:39 +03:00
levlam
48f5169101 tg_cli: add get_supergroup_members_filter. 2020-12-26 21:45:19 +03:00
levlam
f56ea08096 tg_cli: add get_user_privacy_setting_rules. 2020-12-26 21:32:21 +03:00
levlam
d23e6ad352 tg_cli: combine Search* methods. 2020-12-26 21:12:09 +03:00
levlam
4de797e4bd tg_cli: use rand_bool everywhere. 2020-12-26 21:01:57 +03:00
levlam
6654464360 tg_cli: use get_args if possible. 2020-12-26 20:58:30 +03:00
levlam
168becf215 tg_cli: simplify SearchQuery parsing. 2020-12-26 20:47:51 +03:00
levlam
2097d88006 tg_cli: use get_args to read integer parameters. 2020-12-26 20:26:19 +03:00
levlam
e53ffdb101 tg_cli: use get_args to read bool parameters. 2020-12-26 19:59:45 +03:00
levlam
48a47618ca tg_cli: add get_args. 2020-12-26 19:40:46 +03:00
Andrea Cavalli
68c9a14e8d Update CMakeLists.txt 2020-12-26 17:30:31 +01:00
levlam
77112f53d7 tg_cli: add as_limit. 2020-12-26 01:25:00 +03:00
levlam
30d912bd4b Set is_pinned flag for last_pinned_message_id. 2020-12-26 01:05:24 +03:00
levlam
f4ec6e6cfc tg_cli: add get_search_query. 2020-12-26 00:43:38 +03:00
Andrea Cavalli
3817c4f634 Merge remote-tracking branch 'td/master' 2020-12-25 20:29:10 +01:00
Andrea Cavalli
f610ff028c Merge 2020-12-25 20:24:09 +01:00
Andrea Cavalli
e463fb4fb8 Fix checks 2020-12-25 20:18:52 +01:00
Andrea Cavalli
d0611518f6 Merge 2020-12-25 20:09:39 +01:00
Andrea Cavalli
8e99c3c873 Merge 2020-12-25 19:55:29 +01:00
Andrea Cavalli
b8d25b319e Merge 2020-12-25 19:36:46 +01:00
Andrea Cavalli
a2f86155a9 Replace nullptr 2020-12-25 19:36:05 +01:00
Andrea Cavalli
c032df3b76 Merge 2020-12-25 19:09:41 +01:00
Andrea Cavalli
2144560f9d Change nullptr 2020-12-25 19:09:24 +01:00
Andrea Cavalli
204757e075 Merge 2020-12-25 18:58:35 +01:00
levlam
c8668f224c Update ChannelFull.participant_count when channel.participant_count changes. 2020-12-25 18:06:54 +03:00
levlam
ce75097932 Increase ChannelFull.participant_count instead of decreasing administrator_count to guarantee that channel has no administrators more than participants. 2020-12-25 17:35:41 +03:00
levlam
9ca42ec8da Check message pts before merging files. 2020-12-25 16:12:09 +03:00
Andrea Cavalli
7e0b964137 Fix #3 2020-12-25 02:34:42 +01:00
Andrea Cavalli
5fa69429a5 Fix #4 2020-12-25 02:24:42 +01:00
levlam
b70eb33158 Save pts of the last processed message edit. 2020-12-25 03:31:12 +03:00
levlam
ebc4e57da7 Minor improvements of process_update. 2020-12-25 03:19:10 +03:00
levlam
a8377db05d Simplify handling of updateNewChannelMessage and updateEditChannelMessage. 2020-12-25 02:56:22 +03:00
levlam
b867a597e8 Simplify add_pending_channel_update calls. 2020-12-25 02:37:14 +03:00
levlam
ba9837f55e tg_cli: combine emp and empttl. 2020-12-25 01:41:56 +03:00
levlam
d191bc49b6 Save updates with pts_count == 0 to postpone setting their promises. 2020-12-25 01:32:31 +03:00
levlam
4a28b98022 Pass promise to add_pending_channel_update. 2020-12-25 00:20:21 +03:00
levlam
3dbc996acc Postpone pts updates, which can't be applied right now. 2020-12-24 23:32:32 +03:00
levlam
4ea10b3de6 Pass promise to MessagesManager::add_pending_update. 2020-12-24 21:56:15 +03:00
Andrea Cavalli
655f16b044 Update CMakeLists.txt and tl-parser 2020-12-24 18:36:28 +01:00
Andrea Cavalli
6cc3b9b02c Update CMakeLists.txt and tl-parser 2020-12-24 12:52:54 +01:00
Andrea Cavalli
f29e56d0ca Update CMakeLists.txt and tl-parser 2020-12-24 12:44:38 +01:00
Andrea Cavalli
898df61d6e Update CMakeLists.txt and tl-parser 2020-12-24 11:59:41 +01:00
Egor Pugin
28ce6974ce
Remove extra include dir part. (#1336) 2020-12-23 10:41:56 +03:00
levlam
887c2dfdf7 Properly set promise when ignore pending updates. 2020-12-23 02:06:45 +03:00
levlam
b9d1530c78 Store all promises for pending qts updates. 2020-12-23 01:58:56 +03:00
levlam
6d6d1b20b6 Reimplement RSA for OpenSSL 3.0.0. 2020-12-22 23:29:10 +03:00
levlam
03bb56ae96 Add RSA test. 2020-12-22 22:28:04 +03:00
levlam
3589676550 Minor fixes. 2020-12-22 15:51:57 +03:00
levlam
b89cb3fbd6 Fix misprint. 2020-12-22 02:09:08 +03:00
levlam
97f5040b6f Improve documentation. 2020-12-22 01:52:14 +03:00
levlam
656a641290 Fix sending response to setPollAnser. 2020-12-22 01:51:20 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +03:00
levlam
956e70d841 Add groupCall.can_be_managed flag. 2020-12-21 13:47:19 +03:00
levlam
a640fb2fe0 Add to_string method for vector of TL objects. 2020-12-21 03:02:20 +03:00
levlam
3b6c0143b6 Improve error message. 2020-12-21 02:19:53 +03:00
levlam
f11877f6ed Remove null messages from search-like request responses. 2020-12-20 14:08:11 +03:00
levlam
fdf5b73db3 Update documentation. 2020-12-20 14:08:03 +03:00
levlam
c2ac73769f Fix self is_speaking flag. 2020-12-20 02:10:02 +03:00
levlam
bbde4f32c6 Allow to specify emoji for sent stickers. 2020-12-19 14:31:42 +03:00
levlam
905d09d82c Accept non-lowercase end HTML tags. 2020-12-19 13:46:22 +03:00
levlam
34cc9092c9 Update layer 122. 2020-12-18 17:43:23 +03:00
levlam
720a6ac45a Update .clang-format. 2020-12-18 17:21:25 +03:00
levlam
3413e38a61 Fix can_be_muted flag. 2020-12-18 17:08:24 +03:00
levlam
8dd4fe3166 Separately apply versioned and unversioned group call updates. 2020-12-18 16:23:49 +03:00
levlam
7aadb29e0a Improve documentation. 2020-12-17 23:14:47 +03:00
levlam
f5a122c65d Allow zero source in setGroupCallParticipantIsSpeaking. 2020-12-17 23:12:44 +03:00
levlam
89b6d7faa0 tg_cli: use custom call source. 2020-12-17 22:55:29 +03:00
levlam
e856788f52 Reload group call when chat is opened. 2020-12-17 18:38:27 +03:00
levlam
2a50685321 Add separate GroupCallManager::on_update_group_call_rights method. 2020-12-17 18:27:01 +03:00
levlam
7a6c393b7b Update MIN_SEARCH_PUBLIC_DIALOG_PREFIX_LEN limit. 2020-12-17 18:20:28 +03:00
levlam
e89d353b68 Add groupCall.need_rejoin flag. 2020-12-17 17:49:15 +03:00
levlam
c4d8f301a1 Add groupCallParticipant.can_be_muted/can_be_unmuted flags. 2020-12-17 02:07:05 +03:00
levlam
bfcc7d17c4 Improve GroupCallParticipant updating. 2020-12-17 00:37:42 +03:00
levlam
4a3375e617 Various group call fixes. 2020-12-16 22:49:24 +03:00
levlam
6ebe28cdac Load group call administrators. 2020-12-16 20:30:52 +03:00
levlam
0d7c980f9d Fix nullptr dereference during logging. 2020-12-16 18:57:34 +03:00
levlam
ca242e754b Keep biggest update list for a given version instead of forced sync. 2020-12-16 18:40:51 +03:00
levlam
0e668726bc Update can_unmute_self only if the user is muted. 2020-12-16 18:09:32 +03:00
levlam
415a64ff24 Allow loading channel participants without bot info. 2020-12-16 17:43:34 +03:00
levlam
92327f1fe7 Ignore checkGroupCallIsJoined requests first 10 seconds. 2020-12-16 17:02:09 +03:00
levlam
d165a87b73 Reload group call if rights has changed. 2020-12-16 16:38:06 +03:00
levlam
3681da21d8 Automatically close unclosed contours. 2020-12-16 16:04:27 +03:00
levlam
7fc2e783ed Add groupCall.can_unmute_self. 2020-12-16 14:04:07 +03:00
levlam
f50971625f Fix version initialization. 2020-12-16 12:53:17 +03:00
levlam
babd4dc35d Add source to on_update_dialog_group_call. 2020-12-15 19:25:07 +03:00