Commit Graph

4452 Commits

Author SHA1 Message Date
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
levlam
62dc71cbc5 Add GroupCallManager::update_group_call_dialog method. 2020-12-15 19:20:03 +03:00
levlam
d022dfdb62 Add GroupCallManager::can_manage_group_calls method. 2020-12-15 18:21:02 +03:00
levlam
f95366a219 Leave group call when receive corresponding update. 2020-12-15 17:06:11 +03:00
levlam
25d1fde985 Add source to send_update_group_call. 2020-12-15 16:24:38 +03:00
levlam
0d76d53cd5 Process updateGroupCallParticipant even don't need participant list. 2020-12-15 16:06:21 +03:00
levlam
adca19d4da Fix group call version initialization. 2020-12-15 15:40:52 +03:00
levlam
ecc1669e5a Update recent speakers by received in getGroupCall participants. 2020-12-15 15:17:53 +03:00
levlam
1c02363418 Update recent speakers by updateGroupParticipants. 2020-12-15 14:54:47 +03:00
levlam
db99c9817d Fix group call updating after initialization. 2020-12-15 14:32:08 +03:00
levlam
b4e087a2f0 Remove users from recent speakers when they leave the call. 2020-12-15 14:04:06 +03:00
levlam
42f36d2d66 Improve loadGroupCallPartiicpants documentation. 2020-12-15 13:40:04 +03:00
levlam
c73fc71744 Simplify promo data expires_in handling. 2020-12-15 13:28:41 +03:00
levlam
5268f83538 Increase chat/channel cache version to reload has_voice_chat flags. 2020-12-15 13:10:29 +03:00
levlam
c63da4b241 Add group call participants syncronization. 2020-12-15 12:41:26 +03:00
levlam
37a17476c7 Update is_speaking field for speaking group call participants. 2020-12-15 01:42:16 +03:00
levlam
941bc7a4f1 Document updateGroupCallParticipant behavior on join from another device. 2020-12-14 22:42:56 +03:00
levlam
47a00d257b Fix basic group administrator rights. 2020-12-14 22:30:58 +03:00
levlam
4b9eabc668 Separate message contents for started and ended boice chats. 2020-12-14 22:22:20 +03:00
levlam
98241af35a Support voice chats in basic groups. 2020-12-14 17:33:02 +03:00
levlam
65d3557f63 Add outline support for sticker set thumbnails. 2020-12-14 17:16:57 +03:00
levlam
96acefc6c6 Update layer 122. 2020-12-14 16:52:25 +03:00
levlam
6ca15f18c8 Move voice chat-related fields to Dialog. 2020-12-14 00:36:44 +03:00
giuseppeM99
56a925ac90
Fix bad_alloc in get_memory_stats 2020-12-13 13:34:19 +01:00
levlam
00eed8928c Move voice chat creation to GroupCallManager. 2020-12-13 15:18:33 +03:00
levlam
6fdf68bad4 Store DialogId in information about group call. 2020-12-13 14:52:07 +03:00
levlam
b015ada0dc Resolve group call participant by source in set_group_call_participant_is_speaking. 2020-12-12 15:31:56 +03:00
levlam
84c143580b Process pending group call participant updates after version change. 2020-12-12 15:05:22 +03:00
levlam
ab73589165 Implement GroupCallManager::on_receive_group_call_version. 2020-12-12 14:47:56 +03:00
levlam
7398de2790 Apply group call participant updates in the correct order. 2020-12-12 14:10:37 +03:00
levlam
841ef6dc7f Simplify GroupCallManager::process_group_call_participants_from_updates. 2020-12-12 12:27:43 +03:00
levlam
7fc19c3733 Add groupCall.loaded_all_participants flag. 2020-12-12 01:00:00 +03:00
levlam
b78af33192 Update min_order after loaded group call participants. 2020-12-11 23:31:46 +03:00
levlam
d4f3d24142 Split GroupCallManager::process_group_call_participants function. 2020-12-11 23:04:49 +03:00
levlam
8c3120b5cc Process group call participants returned in getGroupCall. 2020-12-11 22:52:53 +03:00
levlam
4a0c42729b Add td_api::loadGroupCallParticipants. 2020-12-11 19:47:34 +03:00
levlam
76950e710f Support updateGroupCallParticipants updates. 2020-12-11 18:44:03 +03:00
levlam
1fb050a264 Add updateGroupCallParticipant. 2020-12-11 17:43:23 +03:00
levlam
52c79bae75 Update documentation and improve type names. 2020-12-09 14:26:22 +03:00
levlam
987f26efdc Add default support for bowling dice. 2020-12-09 13:35:27 +03:00
levlam
07735c27e8 Add related to voice chats chat log event actions. 2020-12-08 20:02:12 +03:00
levlam
707f83e755 Add voice_chat_changes chat log event filter. 2020-12-08 18:42:31 +03:00
levlam
6e3e129b13 Improve group call method and field names. 2020-12-08 18:01:06 +03:00
levlam
901d603808 Add GroupCallParticipant class. 2020-12-08 17:29:25 +03:00
levlam
593a2bfb3e Improve administrator rights name. 2020-12-08 03:19:56 +03:00
levlam
5c832cb361 Update layer 122. 2020-12-08 02:06:20 +03:00
levlam
9e0dba0db4 Separate inline query results cache for different chat types. 2020-12-08 01:26:40 +03:00
levlam
6a38d219f0 Update layer 122. Add updateNewInlineQuery.chat_type (can be sent by the server in the distant future). 2020-12-07 23:08:18 +03:00
levlam
a426105129 Get speaking user from the server by source. 2020-12-07 02:56:13 +03:00
levlam
562742095d Recent speakers fixes. 2020-12-07 02:42:44 +03:00
levlam
8dff5ed65b Do not allow to join finished calls. 2020-12-07 00:59:53 +03:00
levlam
d4e6c3724d Do not allow to join already joined call. 2020-12-07 00:58:54 +03:00