Commit Graph

222 Commits

Author SHA1 Message Date
levlam
adedc7ad4f Support chats as members of other chats. 2021-03-22 04:03:24 +03:00
levlam
eb8e135ae3 Fix dropping group call's can_be_managed flag on leaving. 2021-04-12 04:45:35 +03:00
levlam
94368950a6 Remove wrong CHECK. It is wrong to compare orders with different keep_active_date. 2021-04-08 01:23:04 +03:00
levlam
a0dcd2d9c2 Add optional source to have_dialog_force. 2021-04-08 00:51:32 +03:00
levlam
35d6145d66 Drop loaded_all_participants if receive a group call participant in non-loaded part of the list. 2021-04-05 22:50:57 +03:00
levlam
2c154f5e4a Add source to send_update_group_call_participant. 2021-04-05 22:39:38 +03:00
levlam
8b4410d2bf Improve group call participant logging. 2021-04-05 22:24:10 +03:00
levlam
c4eb613a7a Always include self to participant count in joined calls. 2021-04-05 03:02:52 +03:00
levlam
514777aaf1 Fix infinite updates processing. 2021-04-05 02:27:13 +03:00
levlam
f51e7b5481 Fix handling of group call participant list with one participant. 2021-04-05 01:52:20 +03:00
levlam
62a858807a Drop loaded_all_participants if new user was added to the end of the list. 2021-04-05 01:14:45 +03:00
levlam
09859193b1 Add source to on_group_call_left_impl. 2021-04-05 00:33:21 +03:00
levlam
b7e77765be Fix accessing group call's leave_version. 2021-03-31 15:45:21 +03:00
levlam
fbc7e5a7f8 Don't update group call participant count by definitely already applied updates. 2021-03-28 05:34:58 +03:00
levlam
f7e9da283d Expect that there can be no access to group call participant channels. 2021-03-28 01:59:17 +03:00
levlam
70b71d569b Use AccessRights::Know when edit channel participants. 2021-03-19 23:41:19 +03:00
levlam
2f2d2004e6 Create Dialog for recently speaking channels. 2021-03-19 04:28:00 +03:00
levlam
78f5b24f35 Synchronize group call participant_count with known number of participants. 2021-03-19 04:02:53 +03:00
levlam
cebcdbd88b Automatically call update_group_call_dialog in set_group_call_participant_count. 2021-03-19 03:30:39 +03:00
levlam
af7e26bc49 Try to process versioned updates with old version. 2021-03-19 02:51:50 +03:00
levlam
6656cd29f9 Add version to GroupCallParticipant. 2021-03-19 02:44:20 +03:00
levlam
b6f900b74f Process mute updates as soon as possible. 2021-03-19 02:25:54 +03:00
levlam
f670aeb2b3 Simplify mute_updates processing. 2021-03-19 02:20:22 +03:00
levlam
81f20ae4ec Ignore FLOOD_WAIT errors got getGroupCallStreamSegment. 2021-03-19 01:24:57 +03:00
levlam
a6337c2d37 Improve logging. 2021-03-19 00:41:35 +03:00
levlam
ea5a7bade7 Add set_group_call_participant_count method. 2021-03-19 00:18:55 +03:00
levlam
35250a91bd Keep active date while adjusting min-order. 2021-03-19 00:03:34 +03:00
levlam
504ecbeed7 Fix group call participant count by updates. 2021-03-18 23:31:49 +03:00
levlam
0a23e2bd7b Fix CHECK. 2021-03-18 22:55:15 +03:00
levlam
110a68c764 Try to get information about min-participants from server. 2021-03-18 22:36:59 +03:00
levlam
fee3ca166b Apply prepended my_participant. 2021-03-18 22:03:14 +03:00
levlam
25e5c0bac2 Combine versioned updates with the same version instead of replacing. 2021-03-18 03:21:43 +03:00
levlam
e072f2ffa2 Add struct PendingUpdates. 2021-03-18 03:12:52 +03:00
levlam
b833d23e41 Support ascending by joined_date sort of group call participants. 2021-03-18 02:36:31 +03:00
levlam
1139470bba Pass GroupCallParticipants to get_real_participant_order. 2021-03-17 19:56:00 +03:00
levlam
ccc9920399 Don't create Dialog for unknown min-participants. 2021-03-17 15:26:36 +03:00
levlam
ca6ece6707 Improve getGroupCallStreamSegment. 2021-03-17 14:30:51 +03:00
levlam
7e45fc3949 Add more close_flag checks. 2021-03-17 03:28:07 +03:00
levlam
2162fd6264 Postpone checkGroupCall after receiving a stream segment. 2021-03-17 03:16:34 +03:00
levlam
23b781834e Fix updating recent speakers in joined as chats voice chats. 2021-03-17 02:56:33 +03:00
levlam
93a2cf0556 Fix updating participant_id_to_group_call_id_. 2021-03-16 23:23:05 +03:00
levlam
2e447b3cea Don't process after_join requets if need rejoin. 2021-03-16 18:15:10 +03:00
levlam
c67a8cc5f9 Unify variable names and ensure that groupCallParticipant's chat is created. 2021-03-16 18:07:17 +03:00
levlam
582f033a09 Update limit for group call recording titlw length. 2021-03-16 17:20:53 +03:00
levlam
3bcf4bb61a Get group call from the server before first usage if appropriate. 2021-03-16 17:17:00 +03:00
levlam
eb7a1286ab Automatically update order of inactive group call participants. 2021-03-15 22:04:11 +03:00
levlam
24535d2aba Support different order of group call participants for administrators. 2021-03-15 19:32:33 +03:00
levlam
0a4f1c15b8 Ensure that group call participant is synchronized after explicit request. 2021-03-15 19:20:57 +03:00
levlam
b0aa14c031 Improve get_real_participant_order. 2021-03-15 18:58:31 +03:00
levlam
be68cda22f Add class GroupCallParticipantOrder. 2021-03-15 18:32:28 +03:00