Commit Graph

195 Commits

Author SHA1 Message Date
Andrea Cavalli
b084b2facf Fix compilation issues 2022-11-25 21:37:20 +01:00
Andrea Cavalli
5f5fa9afa2 Merge remote-tracking branch 'td/master' 2022-11-25 19:27:21 +01:00
levlam
3ec53c8d78 Fix compilation error. 2022-11-24 15:25:15 +03:00
levlam
f53cf540b7 Use WaitFreeHashMap to store poll messages. 2022-11-22 12:58:07 +03:00
levlam
5491cc3940 Store polls in a WaitFreeHashMap. 2022-11-22 12:23:58 +03:00
levlam
dd01e73c8f Don't send updateMessageContent about poll messages to bots when the poll is changed. 2022-11-22 12:15:58 +03:00
Andrea Cavalli
70ad9c53c5 Merge remote-tracking branch 'td/master' 2022-08-13 22:56:08 +02:00
levlam
8f433070df Minor fixes. 2022-08-14 15:04:08 +03:00
Andrea Cavalli
eadb920736 Merge remote-tracking branch 'td/master' 2022-08-06 22:08:15 +02:00
levlam
0c9a309746 Ensure that returned number of poll voters isn't less than the number of known voters. 2022-08-02 21:24:53 +03:00
levlam
6c98bec686 Ensure that poll is removed from being_closed_polls_ after request is completed. 2022-07-24 12:19:51 +03:00
levlam
4cf1e02479 Add multiarg version of Scheduler::destroy_on_scheduler. 2022-07-22 21:21:30 +03:00
Andrea Cavalli
cd4a07a7c7 Merge remote-tracking branch 'td/master' 2022-07-22 13:09:22 +02:00
levlam
0f87447ffc Asynchronously destroy some big data storages. 2022-07-20 13:40:14 +03:00
Andrea Cavalli
377050ced3 Merge remote-tracking branch 'td/master' 2022-06-29 23:33:12 +02:00
levlam
e8dccae751 Explicitly pass ContactsManager to
get_input_reply_markup/get_reply_markup_object.
2022-06-28 18:34:53 +03:00
levlam
8f472521d4 Avoid expected logging. 2022-06-28 17:22:04 +03:00
Andrea Cavalli
a116cc9b19 Merge remote-tracking branch 'td/master' 2022-06-21 18:38:28 +02:00
levlam
b393215d66 Forget local polls only by timeout. 2022-06-21 03:35:54 +03:00
levlam
49bd383b35 Immediately forget local polls after sending. 2022-06-20 16:53:28 +03:00
Andrea Cavalli
7eece22bf3 Bugfix 2022-06-07 00:21:49 +02:00
levlam
bfcf52f87c Support MTPROTO_CLUSTER_INVALID error. 2022-06-06 20:36:15 +03:00
Andrea Cavalli
f73adb408a Merge remote-tracking branch 'td/master' 2022-06-01 23:25:22 +02:00
levlam
63a4027ab2 Add source to on_get_poll. 2022-05-29 19:31:36 +03:00
levlam
7962df5e35 Fix poll unload. 2022-05-26 14:44:30 +03:00
Andrea Cavalli
a156fcfb1d Merge remote-tracking branch 'td/master' 2022-05-16 00:00:04 +02:00
levlam
71d5dd526e Separately register scheduled and local polls. 2022-05-09 01:58:17 +03:00
levlam
77019caf61 Unload unused for some time polls. 2022-05-09 01:46:46 +03:00
Andrea Cavalli
4cd31ceb93 Merge remote-tracking branch 'td/master' 2022-05-04 17:49:23 +02:00
levlam
4652292037 Use count instead of find if appropriate. 2022-05-01 23:03:06 +03:00
Andrea Cavalli
d84305048e Merge remote-tracking branch 'td/master' 2022-04-22 15:35:30 +02:00
levlam
163e739302 Add set_promises/fail_promises helper functions. 2022-04-13 17:40:12 +03:00
Andrea Cavalli
e047add8a2 Update tdlib 2022-03-15 11:36:21 +01:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
a136a9d22b Move methods inside Dependencies class. 2022-03-11 15:10:24 +03:00
levlam
2b1314295d Check and fix half of FlatHashMap usages. 2022-02-10 00:59:52 +03:00
levlam
7f7b3b6653 Add separate ChainId(DialogId) constructor. 2022-02-08 17:30:06 +03:00
levlam
b62ced6d95 Minor improvements. 2022-02-08 00:42:53 +03:00
levlam
bcc2adeb47 Fix includes and formatting. 2022-02-08 00:04:34 +03:00
Arseny Smirnov
86bceb2972 td: replace most of std::unordered_map usages to td::FlatHashMap 2022-02-07 21:21:31 +01:00
levlam
b845766bd1 Add class ChainId. 2022-02-05 23:28:43 +03:00
Andrea Cavalli
39856bc56f Merge remote-tracking branch 'td/master' 2022-02-05 01:12:29 +01:00
levlam
6e82e51243 Remove all NetActorOnce usages. 2022-02-04 00:46:10 +03:00
levlam
649f2b85f5 Rename chains to chain_ids in NetQuery. 2022-02-03 22:32:47 +03:00
levlam
02b99d0fbf Remove includes of SequenceDispatcher.h from headers. 2022-02-01 19:34:14 +03:00
Arseny Smirnov
ad38f712e8 SequenceDispatcher: hide usage into NetQueryDispatcher 2022-02-01 18:51:36 +03:00
levlam
7974571615 Add more close_flag checks. 2022-01-13 17:28:10 +03:00
levlam
e592ca4b83 Make sort in PollManager::get_vote_percentage more stable. 2022-01-11 21:52:29 +03:00
KnorpelSenf
789b9c0a55 Fix much typos 2022-01-25 16:07:36 +03:00
Andrea Cavalli
09b98f6b30 Merge remote-tracking branch 'td/master' 2022-01-04 00:04:21 +01:00