Andrea Cavalli
eadb920736
Merge remote-tracking branch 'td/master'
2022-08-06 22:08:15 +02:00
levlam
6c98bec686
Ensure that poll is removed from being_closed_polls_ after request is completed.
2022-07-24 12:19:51 +03:00
Andrea Cavalli
277513ce18
Merge remote-tracking branch 'td/master'
2022-07-03 23:48:22 +02:00
levlam
8537b3d495
Move MultiTimeout to MultiTimeout.h.
2022-07-02 23:32:18 +03:00
Andrea Cavalli
377050ced3
Merge remote-tracking branch 'td/master'
2022-06-29 23:33:12 +02:00
levlam
32bac7bd24
Move Promise to tdutils.
2022-06-27 13:30:18 +03:00
Andrea Cavalli
a116cc9b19
Merge remote-tracking branch 'td/master'
2022-06-21 18:38:28 +02:00
levlam
49bd383b35
Immediately forget local polls after sending.
2022-06-20 16:53:28 +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
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
e047add8a2
Update tdlib
2022-03-15 11:36:21 +01:00
levlam
1f38124861
Use FlatHashSet.
2022-03-11 21:38:48 +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
Andrea Cavalli
09b98f6b30
Merge remote-tracking branch 'td/master'
2022-01-04 00:04:21 +01:00
levlam
8085779cdc
Update copyright year.
2022-01-01 03:35:39 +03:00
Andrea Cavalli
98244d1346
Merge remote-tracking branch 'td/master'
2021-10-20 02:21:14 +02:00
levlam
db7aa28bdf
A lot more minor improvements.
2021-10-19 18:11:16 +03:00
Andrea Cavalli
45e855f89d
Remove most memory related features
...
I can't maintain anymore this amount of features while keeping the library constantly updated and without bugs. Every merge was taking me multiple hours of revisioning the code. I give up.
From this commit onwards TDLight will only have small useful customizations that are easy to maintain.
Now the people relying on the OptimizeMemory method can restart the session every N hours to free up the memory.
The real way to keep a low memory usage must involve a huge refactoring to allow the unloading of the caches into the sqlite database, similar to what's already happening with messages data. Only Levlam has the ability to implement this without needing to merge the upstream everytime.
2021-09-25 22:11:42 +02:00
Andrea Cavalli
c06a3d9dcf
Merge remote-tracking branch 'td/master'
2021-09-10 15:49:57 +02:00
levlam
73290dcda8
Reopen closed polls when copying them.
2021-09-05 23:11:25 +03:00
Andrea Cavalli
3dde04b17f
Merge remote-tracking branch 'td/master'
2021-07-17 11:15:40 +02:00
levlam
40c5d47717
Make inherited classes final if possible.
2021-07-04 05:58:54 +03:00
levlam
edfa5d1d98
Use final instead of override.
2021-07-03 23:51:36 +03:00
Andrea Cavalli
a79f835de0
Add memory_cleanup on tear_down, and add more memory_cleanup.
2021-01-12 01:37:17 +01:00
levlam
52c1da0a70
Update copyright year.
2021-01-01 15:57:46 +03:00
levlam
656a641290
Fix sending response to setPollAnser.
2020-12-22 01:51:20 +03:00
levlam
cb3f390a92
Unify "log event" spelling.
...
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
levlam
77304e3209
Drop poll voters cache when poll options changes.
...
GitOrigin-RevId: e9774ad0cc3574a3f1e1fa8ac796c056bafcf89d
2020-05-23 20:04:51 +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
04a002d9f3
Add source to register_message_content.
...
GitOrigin-RevId: 035429321a0fa15ea8918c634b19f12c21fc1d61
2020-02-22 19:21:58 +03:00
levlam
4293e4bec1
Fix some includes.
...
GitOrigin-RevId: 760f9d7e09881bfc061a78118008cf7fdf4660f4
2020-01-27 04:54:01 +03:00
levlam
8350443093
Add limit to getPollVoters.
...
GitOrigin-RevId: 7f782124e111680b3b726685d6633e79f3d3b60f
2020-01-18 07:01:05 +03:00
levlam
fb215a0287
Fix quiz copying.
...
GitOrigin-RevId: f92b11f5327b7f6f67cb7e67ea7ee282a5f5cb23
2020-01-15 05:42:10 +03:00
levlam
6d15cc7bf0
Add updatePollAnswer.
...
GitOrigin-RevId: 472f91830667f52317f03636f3ab2c37bca32d43
2020-01-13 22:56:59 +03:00
levlam
4e22f29c53
Add td_api::getPollVoters.
...
GitOrigin-RevId: 47ad78287433a2efb9b66f18a960e4de6060842a
2020-01-13 21:21:58 +03:00
levlam
f2211527db
Add support for recent poll voters.
...
GitOrigin-RevId: f4260d87ae4a22d56b2024c07713ceeb37203895
2020-01-12 04:40:17 +03:00
levlam
a7501e1582
Update layer to 109. Add new poll types.
...
GitOrigin-RevId: cc82f1bfdf1d4cd906212009f2dc8d84e0cb543a
2020-01-11 03:46:26 +03:00
levlam
80c35676a2
Update copyright year.
...
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
0618005a95
Add FullMessageId.h.
...
GitOrigin-RevId: 758133149ff3317b3d9d3f86b1a841e8f34ca35a
2019-11-26 19:53:10 +03:00
levlam
af39698707
Add reply_markup to stopPoll.
...
GitOrigin-RevId: 08cf68d42ecc6c25cd8ec7146fb7e3b1856a7207
2019-04-12 02:10:33 +03:00
levlam
b448160ad6
Send updatePoll for being closed polls.
...
GitOrigin-RevId: 3e2302d838e5d5dc03b0f6d5b164081b64b1c0eb
2019-04-09 13:25:29 +03:00