Commit Graph

178 Commits

Author SHA1 Message Date
levlam
1e2c0ce814 Rename FullMessageId to MessageFullId. 2023-09-21 19:11:17 +03:00
levlam
4d1d22d6f4 Keep PendingPollAnswer until poll updates are applied. 2023-08-19 06:42:06 +03:00
levlam
b9473decc2 Always list actor_id first in lambda capture. 2023-07-11 17:53:43 +03:00
levlam
bcf9ff7d43 Explicitly include telegram_api.h in cpp files. 2023-07-01 14:53:04 +03:00
levlam
6702a001f0 Remove unused api.hpp includes. 2023-07-01 12:20:39 +03:00
levlam
38efb6d673 Support MessageSenders as poll voters. 2023-04-25 16:41:04 +03:00
levlam
48d72677d3 Update layer to 159. 2023-04-25 14:27:58 +03:00
levlam
e3256e7b4c Use td::append if possible. 2023-06-10 23:14:03 +03:00
levlam
e626b5f68f Drop binlog events if message database was deleted. 2023-05-15 18:16:55 +03:00
levlam
e79741dca0 Improve Poll field names. 2023-04-25 15:29:24 +03:00
levlam
cfe3e19231 Improve PollOption field names. 2023-04-25 15:16:29 +03:00
levlam
42c585b7ed Simplify voter list handling. 2023-04-25 14:13:34 +03:00
levlam
1ce9f9d27c Minor improvements. 2023-03-24 14:14:37 +03:00
levlam
b6a6c07de5 Add optional source to MultiTimeout::cancel_timeout. 2023-03-17 01:02:30 +03:00
levlam
387e84004b Ignore invalid polls stored in database. 2023-03-14 23:24:19 +03:00
levlam
4c390b4988 Don't use poll multi-timeouts while closing. 2023-03-14 23:20:05 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
835ee52491 Make TdParameters private in Global. 2023-03-13 19:47:38 +03:00
levlam
92837b3bee Reget message to delete it after receiving "MESSAGE_ID_INVALID" from getPollResults. 2023-03-09 15:54:31 +03:00
levlam
882de6e8e8 Replace unsafe to maintain data_ field with get_data() method. 2023-02-02 03:08:26 +03:00
levlam
cf1984844b Update copyright year. 2023-01-01 00:28:08 +03:00
levlam
f1eedfaa47 Simplify some usages of optional TL fields. 2022-12-18 22:15:57 +03:00
levlam
d6842ced1b Avoid update about deleted closed polls. 2022-11-26 12:35:29 +03: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
levlam
8f433070df Minor fixes. 2022-08-14 15:04:08 +03: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
levlam
0f87447ffc Asynchronously destroy some big data storages. 2022-07-20 13:40:14 +03: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
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
levlam
bfcf52f87c Support MTPROTO_CLUSTER_INVALID error. 2022-06-06 20:36:15 +03: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
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
levlam
4652292037 Use count instead of find if appropriate. 2022-05-01 23:03:06 +03:00
levlam
163e739302 Add set_promises/fail_promises helper functions. 2022-04-13 17:40:12 +03: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