Commit Graph

116 Commits

Author SHA1 Message Date
Andrea Cavalli
92f664614b Fix #18 2021-03-28 12:50:00 +02:00
Andrea Cavalli
ce9a9ebbf9 Clean memory only if needed 2021-03-12 19:41:27 +01:00
Andrea Cavalli
1ea79d2739 Merge latest commits 2021-03-11 18:25:39 +01:00
levlam
bf42d62f1e Unify ResultHandler subclass names and logged name. 2021-02-08 15:56:08 +03:00
Andrea Cavalli
a84a9f472d Bugfixes 2021-01-12 17:12:29 +01:00
Andrea Cavalli
801f14fa9c Fix log check 2021-01-12 13:18:22 +01:00
Andrea Cavalli
461d9886ba Update PollManager.cpp 2021-01-12 03:44:00 +01:00
Andrea Cavalli
58d3c6c830 Update PollManager.cpp 2021-01-12 03:34:08 +01:00
Andrea Cavalli
4e6ebda223 Update PollManager.cpp 2021-01-12 03:31:59 +01:00
Andrea Cavalli
0de571129b Update PollManager 2021-01-12 03:17:38 +01:00
Andrea Cavalli
2ebb310101 Fix poll crash 2021-01-12 03:05:27 +01:00
Andrea Cavalli
241ee13727 FIx abort 2021-01-12 02:48:41 +01:00
Andrea Cavalli
b6f0df26bc Fix null checks crash 2021-01-12 02:40:01 +01:00
Andrea Cavalli
a79f835de0 Add memory_cleanup on tear_down, and add more memory_cleanup. 2021-01-12 01:37:17 +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
192fd4862f Use td::unique. 2020-12-30 18:50:57 +03:00
levlam
656a641290 Fix sending response to setPollAnser. 2020-12-22 01:51:20 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +03:00
levlam
35a9a93fc9 Fix std::...::erase return value usages.
GitOrigin-RevId: d9729ccd619e3b99554f1e1c2262d8826f0a8571
2020-10-08 23:04:40 +03:00
levlam
54f32ebc80 Add source to resolve_dependencies_force.
GitOrigin-RevId: b09c73df688eea5872d65ec56f0ae1cb10717542
2020-10-08 22:54:24 +03:00
levlam
e0adaebb91 Unify logging of request responses.
GitOrigin-RevId: ae4c0a3881a89aa235baa08c07ec97a914437d8c
2020-09-24 16:08:04 +03:00
levlam
cb3f390a92 Unify "log event" spelling.
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
levlam
9a8895e043 Add get_log_event_storer convenience method.
GitOrigin-RevId: 0651bb08a5c41917b69836140e3ff512ab571571
2020-09-22 01:39:45 +03:00
levlam
2c0a9367ac Simplify adding dialog dependencies.
GitOrigin-RevId: 27c9fcc1221e60960f0183e9d792121ca5e8fb0a
2020-09-10 23:24:33 +03:00
levlam
760005df5b Change minimum chunk size of poll voters to 10.
GitOrigin-RevId: a1789ac229021d183c9d800fbfebf16c521be11c
2020-06-06 02:30:06 +03:00
levlam
fb3a4b49aa Fix poll parsing.
GitOrigin-RevId: a2089864c44b80a6a7f2e6f75c3cb8e533c9f839
2020-05-30 22:46:38 +03:00
levlam
77304e3209 Drop poll voters cache when poll options changes.
GitOrigin-RevId: e9774ad0cc3574a3f1e1fa8ac796c056bafcf89d
2020-05-23 20:04:51 +03:00
levlam
6879165446 Update correct_option_id on poll options change.
GitOrigin-RevId: 30ae8890e929644cc492afbad71574cf333a554a
2020-05-23 17:33:30 +03:00
levlam
8b0561f3be Check that poll has no duplicate options.
GitOrigin-RevId: 781558fac8edf2f42a57dac0800590095babb20a
2020-05-23 17:21:56 +03:00
levlam
43704b69e0 Assign correct correct_option_id.
GitOrigin-RevId: 1c20d8f27a0312805bb696da42d0d39b68f90fc6
2020-05-23 17:11:53 +03:00
levlam
eb9a3e7ca3 Ignore polls without answers.
GitOrigin-RevId: 6087b7b68e05c04bf26e017a1250c7aac6a2900e
2020-05-23 16:22:44 +03:00
levlam
c1555a0693 Improve logging on wrong poll_id received.
GitOrigin-RevId: 0740e1dbde312c17368a5182c9e2be57934fe70a
2020-05-17 17:14:09 +03:00
levlam
c9f12fe73f Do not use SequenceDispatcher for poll stop by bots.
GitOrigin-RevId: a86c1ad6d852a14755813e8987702052a9d02113
2020-04-30 22:28:52 +03:00
levlam
1f58155cf1 Do not allow revote in a quiz.
GitOrigin-RevId: c6865a295b154fee3ba09d96691a7bc86ba4214e
2020-04-29 16:35:53 +03:00
levlam
777e26dd77 Really fix updating of closed polls.
GitOrigin-RevId: a32c186adb947b909fbdeb68a58d3b98fb8e33ec
2020-04-22 19:36:42 +03:00
levlam
d7efe13082 Fix updating poll after close.
GitOrigin-RevId: 44fc0a7c598cf38afd58d38ecd320cd0586fb076
2020-04-22 16:18:19 +03:00
levlam
38de2b016e Never drop correct poll option and quiz explanation.
GitOrigin-RevId: 5cd600cd0bb1a5c4200eb74d62ace5da6425ca7d
2020-04-19 11:27:40 +03:00
levlam
06135cccf9 Add parameters offset and limit to getTrendingStickerSets.
GitOrigin-RevId: 360c14f4cd357d23c3537ab26ee55a5b5ed29e81
2020-04-18 01:55:54 +03:00
levlam
54279d23cd Reget poll once after close.
GitOrigin-RevId: c92d691661bbdd63ca038fa2c35ed8ce04078c8c
2020-04-05 05:35:52 +03:00
levlam
16b372bbba Automatically close polls by timeout.
GitOrigin-RevId: 708729b3bb75397716ce6df1bcc0a5a7019145bb
2020-04-05 04:31:59 +03:00
levlam
fda0fc0adc Improve Poll.open_period field name.
GitOrigin-RevId: 733b05bbb08cece27ddba88875e9a8493e974081
2020-04-04 00:05:35 +03:00
levlam
4e7cd24285 Add support for quiz explanation.
GitOrigin-RevId: ab4346fe3abe5c5abd7234d5b4b3937e995494af
2020-04-03 23:39:50 +03:00
levlam
bb75ea35da Update layer to 112.
GitOrigin-RevId: 9d18b24ce8aeb86624a61c04e55ca5b4a42634ce
2020-04-03 16:50:10 +03:00
levlam
1e4c1f16b9 Fix handling errors to setPollAnswer.
GitOrigin-RevId: 686a76db9a69d7c19bda0c07d294ce9a448d09d4
2020-04-04 02:44:25 +03:00
levlam
7932ea08eb Invalidate list of poll voters if full list size is different from the expected total count.
GitOrigin-RevId: 544e9c4ae8b76bb10399c8370269940eb45a4684
2020-03-30 22:43:04 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
24e2dcd590 Reregister edited scheduled messages.
GitOrigin-RevId: 72d2f5804fb6fb7dc5e4fb026dd1ef6640ee63f6
2020-02-26 16:26:25 +03:00
levlam
04a002d9f3 Add source to register_message_content.
GitOrigin-RevId: 035429321a0fa15ea8918c634b19f12c21fc1d61
2020-02-22 19:21:58 +03:00
levlam
c2bd1ef4b0 Minor.
GitOrigin-RevId: 297f9332431ae7b3e1b3578ea61e6a59d5cfd068
2020-01-30 01:50:28 +03:00