levlam
dbc7ffcca5
Force unread count recalculation after each loaded chat list slice.
2021-10-11 10:03:34 +03:00
levlam
4d8abe394e
Fix continuation of chat list loading.
2021-10-11 01:23:17 +03:00
levlam
628a490e2a
Use request promise in getBlockedMessageSenders.
2021-10-09 22:05:23 +03:00
levlam
3b794126d8
Avoid G usage in lambda promises.
2021-10-07 15:28:52 +03:00
Andrea Cavalli
4e70729edb
Merge remote-tracking branch 'td/master'
2021-10-07 00:51:58 +02:00
levlam
e18901953a
Don't capture td in lambda Promise in MessagesManager.
2021-10-06 23:10:57 +03:00
levlam
557c5d1d4c
Use request promise in searchChatRecentLocationMessages.
2021-10-06 14:22:42 +03:00
Andrea Cavalli
65f4b8ba57
Merge remote-tracking branch 'td/master'
2021-10-04 00:06:53 +02:00
levlam
11af0a058d
Add source to get_message_object.
2021-10-03 14:54:40 +03:00
levlam
49ab7cd53a
Use messages.getSearchCounters.
2021-10-03 13:47:50 +03:00
Andrea Cavalli
c01c7a53e9
Merge remote-tracking branch 'td/master'
2021-10-02 15:03:28 +02:00
Andrea Cavalli
e3bd6380b8
Merge remote-tracking branch 'td/master'
2021-10-01 19:17:02 +02:00
levlam
cd9a89fd7d
Send updateAnimatedEmojiMessageClicked in non-opened chats.
2021-10-01 20:05:11 +03:00
levlam
4a185caa74
Check message_id of loaded from database messages.
2021-10-01 16:43:02 +03:00
levlam
ad3b9c822d
Use struct MessagesDbDialogMessage to return messages in a known chat from database.
2021-10-01 12:55:12 +03:00
levlam
813e32a265
Simplify on_get_message_from_database usage.
2021-10-01 11:36:32 +03:00
levlam
314035a129
Use MessagesDbMessage instead of std::pair.
2021-10-01 11:22:56 +03:00
Andrea Cavalli
616a40b3b2
Merge remote-tracking branch 'td/master'
2021-09-29 00:33:23 +02:00
levlam
2ce0be4fe7
Remove getChatStatisticsUrl method.
2021-09-28 19:08:36 +03:00
Andrea Cavalli
9ca532c6a6
Merge remote-tracking branch 'td/master'
2021-09-26 23:08:36 +02:00
levlam
c5a2e9a870
Load only chats with known info in MessagesManager::load_dialogs.
2021-09-26 19:38:27 +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
897d4af16c
Merge remote-tracking branch 'td/master'
2021-09-25 19:24:57 +02:00
levlam
2ec2e4d78f
Use "set"/"toogle" instead of "change".
2021-09-24 10:42:39 +03:00
levlam
e212d1293d
Send stats.getMessagePublicForwards to the correct DC.
2021-09-24 09:07:38 +03:00
levlam
bc4058b8be
Add and use MessagesManager::get_channel_differences_if_needed.
2021-09-23 23:34:55 +03:00
levlam
910f60c145
Use Promise instead of RequestActor in getMessagePublicForwards.
2021-09-23 22:56:38 +03:00
levlam
fbd2309b37
Don't remove emoji modifiers in chat action emojis.
2021-09-23 17:16:59 +03:00
levlam
551103a084
Send updateAnimatedEmojiMessageClicked only in opened chats.
2021-09-18 21:26:22 +03:00
levlam
5de53e09eb
Add updateAnimatedEmojiMessageClicked.
2021-09-17 15:51:42 +03:00
levlam
5fd11e4b7a
Add td_api::clickAnimatedEmojiMessage.
2021-09-16 00:41:40 +03:00
Andrea Cavalli
6e1836a024
Merge remote-tracking branch 'td/master'
2021-09-15 16:03:11 +02:00
levlam
ded0b57905
Add td_api::getRecentlyOpenedChats.
2021-09-14 14:18:37 +03:00
levlam
5bec536803
Add class RecentDialogList.
2021-09-13 20:34:57 +03:00
Andrea Cavalli
c06a3d9dcf
Merge remote-tracking branch 'td/master'
2021-09-10 15:49:57 +02:00
Andrea Cavalli
37b1d48470
Fix compilation warnings and errors
2021-09-10 15:47:26 +02:00
levlam
5c59a10418
Move game-related methods to GameManager.
2021-09-07 10:45:01 +03:00
levlam
0ec10947d5
Fix some misprints.
2021-09-06 13:58:40 +03:00
levlam
96ffd57881
Use Promise isntead of RequestOnceActor to get games high scores.
2021-09-05 10:54:20 +03:00
Andrea Cavalli
a20e8b6db3
Merge remote-tracking branch 'td/master'
2021-09-04 16:03:33 +02:00
levlam
a4f66c69cb
Add td_api::getMessageViewers.
2021-09-03 16:14:03 +03:00
levlam
41c391f140
Update layer to 133.
2021-09-03 12:27:59 +03:00
levlam
d3e8029533
Delete unneded refs from set_typing_query_.
2021-09-17 12:33:59 +03:00
levlam
48f623f132
Simpler and faster have_message_force.
2021-09-16 17:28:33 +03:00
levlam
6beaf41231
Minor improvements.
2021-09-01 20:31:39 +03:00
levlam
2b980ec215
Remove default source from have_dialog_force.
2021-09-01 19:41:00 +03:00
levlam
b1db807868
Add forwardMessages.only_preview.
2021-08-31 23:37:21 +03:00
levlam
23a4c2c8a8
Return Message objects from send_message/forward_messages.
2021-08-31 22:34:46 +03:00
levlam
548ab8d7ee
Add MessagesManager::get_forwarded_messages.
2021-08-31 20:39:32 +03:00
levlam
87e003916c
Add MessagesManager::fix_forwarded_message.
2021-08-31 19:42:37 +03:00