Commit Graph

4745 Commits

Author SHA1 Message Date
levlam
84194768ae Add check that chats aren't created before MessagesManager is inited. 2021-04-03 22:41:26 +03:00
levlam
5a885bd06d Add more logging. 2021-04-03 02:46:56 +03:00
levlam
bee68243e8 Fix CHECK. 2021-04-03 02:19:30 +03:00
levlam
1bbcc01091 Fix MessagePaymentSuccessful storing. 2021-04-02 17:04:51 +03:00
levlam
5b6301c40c Fix payments native provider data. 2021-04-01 21:53:23 +03:00
levlam
e75d8ccadc Add check. 2021-04-01 21:27:40 +03:00
levlam
ffab6fe018 Remove top_thread_message_id from scheduled messages. 2021-04-01 21:10:25 +03:00
levlam
ea0280c589 Fix convert_address. 2021-03-31 17:51:51 +03:00
levlam
5508721497 Use add_message_dependencies to reliably find all dependent dialogs. 2021-03-31 16:17:25 +03:00
levlam
1bb13c0ab3 Remove unused parameter in add_message_dependencies. 2021-03-31 16:07:45 +03:00
levlam
b86a3fe227 Fix misprint. 2021-03-31 15:50:51 +03:00
levlam
b7e77765be Fix accessing group call's leave_version. 2021-03-31 15:45:21 +03:00
levlam
13a80bc4e8 Use send_closure_later to avoid cycles in add_message_to_dialog. 2021-03-29 22:36:29 +03:00
levlam
955ce5f946 Improve error message. 2021-03-29 22:25:06 +03:00
levlam
290293766f Improve error message. 2021-03-29 21:43:50 +03:00
levlam
224b560c83 Improve error message on access to a closed secret chat. 2021-03-29 21:26:31 +03:00
levlam
732193b346 Fix default last_new_message_id in secret chats, broken in 9948e41aed. 2021-03-29 20:52:59 +03:00
levlam
ad495c0d0c Skip error logging for deleted bots. 2021-03-29 18:10:37 +03:00
levlam
079c9919d2 Parse push_receiver_id as int64. 2021-03-29 16:23:50 +03:00
levlam
c739df8507 Pass UserId instead of int32 when creating secret chat. 2021-03-29 11:57:26 +03:00
levlam
5de3751d8d Use int64 for sender_user_id in message database. 2021-03-29 11:28:43 +03:00
levlam
b5655ddab6 Pass UserId to Contact::Contact. 2021-03-29 08:20:54 +03:00
levlam
f5ab187bb2 Use UserId in PrivacyManager. 2021-03-29 01:34:33 +03:00
levlam
4f644ce389 Add and use statis UserId::get_user_ids/get_input_user_ids methods. 2021-03-29 00:50:15 +03:00
levlam
4df03c8491 Clamp float numbers before conversion to integers. 2021-03-28 22:33:22 +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
cc0d45a01c Add groupCallParticipant.is_current_user field. 2021-03-28 04:41:32 +03:00
levlam
9936cdc320 Fix handling of speaking in group call chat actions. 2021-03-28 04:03:00 +03:00
levlam
307821eb31 Never treat closed secret chats as just created. 2021-03-28 03:46:45 +03:00
levlam
7aa71edad2 Drop outdated *Full.invite_link stored in the database. 2021-03-28 03:36:14 +03:00
levlam
d74749c813 Drop basic group invite link if removed from administrators. 2021-03-28 03:25:08 +03:00
levlam
984e79b7f7 Drop channel invite link, only when corresponding administrator right is removed. 2021-03-28 02:35:11 +03:00
levlam
024601eb86 Don't call remove_dialog_access_by_invite_link on username change. 2021-03-28 02:07:38 +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
879fd3b7c0 Use add_message_sender_dependencies for default group call alias. 2021-03-28 01:55:39 +03:00
levlam
b84318fed4 Minor improvements. 2021-03-27 05:19:22 +03:00
levlam
66de95d93c Fix compilation errors and formatting. 2021-03-26 18:52:45 +03:00
Arseny Smirnov
5c7b7d4c85 TD_EXPERIMENTAL_WATCH_OS cmake option 2021-03-26 18:04:25 +03:00
levlam
c6dec21cb6 Improve getExternalLinkInfo documentation. 2021-03-21 03:13:43 +03:00
levlam
f0e7b211c3 Use case-insensitive comparison for short mention entities. 2021-03-20 22:57:34 +03:00
levlam
70b71d569b Use AccessRights::Know when edit channel participants. 2021-03-19 23:41:19 +03:00
levlam
302e5940d4 Update version to 1.7.3. 2021-03-19 15:30:40 +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
12a755d921 Don't ignore update about ended group call if group call is being joined. 2021-03-19 01:28:18 +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
93ae3dc2f6 Improve logging. 2021-03-18 23:18:16 +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
62c9890bcf Support url_auth_domains. 2021-03-16 01:29:54 +03:00
levlam
54b9760935 Improve getExternalLink methods. 2021-03-16 00:52:37 +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
7987912230 Use string as groupCallParticipant.order. 2021-03-15 18:53:51 +03:00
levlam
be68cda22f Add class GroupCallParticipantOrder. 2021-03-15 18:32:28 +03:00
levlam
ff3600b762 Sync group call participants after rights changed. 2021-03-15 17:48:18 +03:00
levlam
95391dc705 Improve logging. 2021-03-15 16:42:03 +03:00
levlam
ffc07304a9 Improve searchMessages documentation. 2021-03-15 15:17:23 +03:00
levlam
0339921102 Improve some spelling. 2021-03-15 03:32:14 +03:00
levlam
b9f7668b07 Allow to always get self group call participant by user_id. 2021-03-15 02:15:01 +03:00
levlam
42911b9122 Add source to process_group_call_after_join_requests. 2021-03-15 02:03:52 +03:00
levlam
e2ac80f2ba Add td_api::toggleGroupCallParticipantIsHandRaised. 2021-03-15 01:56:59 +03:00
levlam
a4431b2604 Don't allow to show as speaking muted by admin participants. 2021-03-14 04:33:51 +03:00
levlam
4d754052e0 Fix getGroupCallStreamSegment. 2021-03-13 16:50:11 +03:00
levlam
92b384f3f4 Update group call title length limit. 2021-03-13 02:49:40 +03:00
levlam
9ac71272a3 Support joining group call as a stream listener. 2021-03-12 20:11:44 +03:00
levlam
a833d5e292 Improve method name. 2021-03-12 19:31:52 +03:00
levlam
0ec4c2084e Add td_api::getGroupCallInviteLink. 2021-03-12 19:29:06 +03:00
levlam
73bed3ed80 Add resetGroupCallInviteHash method. 2021-03-12 18:58:43 +03:00
levlam
9bfd98c08d Add joinGroupCall.invite_hash. 2021-03-12 18:36:55 +03:00
levlam
0fb6c52cd4 Support toggling group call recording. 2021-03-11 22:19:19 +03:00
levlam
92218450c5 Add groupCall.record_duration. 2021-03-11 00:55:08 +03:00
levlam
a6544e3068 Use separate versions for different groupCall fields. 2021-03-10 23:43:21 +03:00
levlam
67889cdcbc Add td_api::getGroupCallStreamSegment. 2021-03-10 22:50:14 +03:00