Commit Graph

552 Commits

Author SHA1 Message Date
Andrea Cavalli
a79f835de0 Add memory_cleanup on tear_down, and add more memory_cleanup. 2021-01-12 01:37:17 +01:00
Andrea Cavalli
5af21e5612 Merge commit 'c5549b73460f58addfaea52c0bef98a94483211f'
Conflicts:
	td/telegram/MessagesManager.cpp
2021-01-08 14:40:25 +01:00
levlam
6b909386fd Simplify is_dialog_participant_suitable. 2021-01-08 02:01:49 +03:00
Andrea Cavalli
08bd345987 Change default values of experimental options 2021-01-07 19:18:45 +01:00
Andrea Cavalli
2f28ed3bba Add experiment_enable_chat_access_hash_cleanup 2021-01-06 21:21:11 +01:00
Andrea Cavalli
7852116554 Fix #9 2021-01-05 17:26:11 +01:00
Andrea Cavalli
d81befa783 Merge commit '71ac1f67bf160763bac8cf1183e12d15d67260b6' 2021-01-05 17:20:01 +01:00
levlam
0ee37c5e64 Ensure that ChannelFull.member_count >= administrator_count after speculative update. 2021-01-05 15:18:15 +03:00
Andrea Cavalli
85fb357a19 Merge commit '82f0386e73b7128a8aafec5bfa7dd825fe94ac39'
Conflicts:
	td/telegram/MessagesManager.cpp
2021-01-02 12:57:08 +01:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
dbbfcd5d64 Update ChannelFull participant count only after channel is updated. 2021-01-01 02:46:37 +03:00
Andrea Cavalli
1f7ae82450 Update ContactsManager.cpp 2020-12-30 12:39:57 +01:00
Andrea Cavalli
343d28a6bc Update ContactsManager.cpp 2020-12-30 12:39:19 +01:00
Andrea Cavalli
a6c0dbf160 Merge commit 'f7c01e88e36d3e49f3bf4b37ea71865324b0ecaa' 2020-12-30 02:20:47 +01:00
levlam
2394ccd29e Decrease max_participant_count to not update it for groups with 5000+ members. 2020-12-29 14:41:17 +03:00
Andrea Cavalli
17e7e44f6e Merge commit '8139e0d560b25cd2827fb0473e5726319998c10f'
Conflicts:
	td/generate/scheme/td_api.tlo
	td/telegram/GroupCallManager.cpp
	td/telegram/MessagesManager.cpp
2020-12-28 19:09:04 +01: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
d0611518f6 Merge 2020-12-25 20:09:39 +01:00
Andrea Cavalli
8e99c3c873 Merge 2020-12-25 19:55:29 +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
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
3589676550 Minor fixes. 2020-12-22 15:51:57 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +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
415a64ff24 Allow loading channel participants without bot info. 2020-12-16 17:43:34 +03:00
levlam
d165a87b73 Reload group call if rights has changed. 2020-12-16 16:38:06 +03:00
levlam
babd4dc35d Add source to on_update_dialog_group_call. 2020-12-15 19:25:07 +03:00
levlam
47a00d257b Fix basic group administrator rights. 2020-12-14 22:30:58 +03:00
levlam
98241af35a Support voice chats in basic groups. 2020-12-14 17:33:02 +03:00
levlam
6ca15f18c8 Move voice chat-related fields to Dialog. 2020-12-14 00:36:44 +03: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
91d4b57713 Add recent group call speakers. 2020-12-06 10:40:26 +03:00
levlam
f3c8ae83c5 Update channel when its group call is changed. 2020-12-05 21:28:57 +03:00
levlam
bc5a3d2cec Add supergroup.is_voice_chat_empty flag. 2020-12-05 19:43:57 +03:00
levlam
eb9abbb9ab Save voice chat channel_id. 2020-12-04 12:40:51 +03:00
levlam
34e05375c1 Add GroupCallId class. 2020-12-03 19:52:50 +03:00
levlam
eeee625803 Rename createVoiceChat method. 2020-12-03 01:08:20 +03:00
levlam
e1271c7fa5 Add createChatGroupCall. 2020-11-26 10:56:13 +03:00
levlam
5d6e55e939 Add group_call_id to supergroupFullInfo. 2020-11-25 23:07:10 +03:00
levlam
cc47f9b63f Support updateGroupCall. 2020-11-25 17:04:32 +03:00
Andrea Cavalli
cba9f74cba Merge remote-tracking branch 'td/master' 2020-11-22 01:11:21 +01:00
levlam
09b10c0ed1 Improve names of statistical classes. 2020-11-19 17:57:15 +03:00
Andrea Cavalli
2821f4af4f Update ContactsManager.cpp 2020-11-10 13:05:13 +01:00
Andrea Cavalli
eb28f728be Remove unused mutex 2020-11-10 12:42:35 +01:00