Commit Graph

386 Commits

Author SHA1 Message Date
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 e3bd6380b8 Merge remote-tracking branch 'td/master' 2021-10-01 19:17:02 +02:00
levlam 13c48e590d Fix profile photo reuploading. 2021-10-01 19:19:14 +03:00
Andrea Cavalli 5c2b4fe983 Merge remote-tracking branch 'td/master' 2021-10-01 15:06:14 +02:00
levlam 4f9b35ea72 Use get_contact in importContacts and changeImportedContacts. 2021-09-30 14:18:01 +03:00
levlam 44efa70789 Pass Contact to add_contact. 2021-09-30 13:53: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 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 f2908bb7e5 Allow to add non-members as administrators in basic groups using setChatMemberStatus. 2021-09-24 10:20:50 +03:00
levlam e212d1293d Send stats.getMessagePublicForwards to the correct DC. 2021-09-24 09:07:38 +03:00
levlam a3c8da47a0 Return void from load_*_full. 2021-09-23 18:52:39 +03:00
levlam db18baa503 Unify include order. 2021-09-19 00:47:05 +03:00
levlam 02ae56ae8a Improve validness checks for UserId/ChatId/ChannelId. 2021-09-14 17:09:40 +03:00
Andrea Cavalli c06a3d9dcf Merge remote-tracking branch 'td/master' 2021-09-10 15:49:57 +02:00
levlam 8117853ea4 Add logging on partial update*FullInfo. 2021-09-07 18:20:34 +03:00
levlam 168399f21d Add source to update_*_full. 2021-09-07 17:41:56 +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
Andrea Cavalli 0ee1d7edc1 Receive access hashes 2021-08-23 20:17:55 +02:00
levlam 828e1e22a0 Skip unneeded getFullChannel requests. 2021-08-23 11:10:46 +03:00
Andrea Cavalli 4286622a5a Merge remote-tracking branch 'td/master' 2021-08-02 10:47:33 +02:00
levlam d1b985430c Add source to ContactsManager::load_user_full. 2021-08-02 06:14:59 +03:00
levlam 3156492c2f Add source to ContactsManager::load_channel_full. 2021-08-02 05:50:52 +03:00
Andrea Cavalli a580242be1 Merge remote-tracking branch 'td/master' 2021-07-23 15:19:00 +02:00
levlam 58c99ed63a Don't ignore forcely loaded after close users and chats. 2021-07-19 04:27:44 +03:00
levlam 13fcffd711 Replace GetChatMemberRequest with REQUEST_PROMISE. 2021-07-19 04:17:29 +03:00
Andrea Cavalli 3dde04b17f Merge remote-tracking branch 'td/master' 2021-07-17 11:15:40 +02:00
levlam e649098194 Improve error messages for invalid member_id parameters. 2021-07-16 04:23:05 +03: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
levlam 8b5a55c798 Update member restrictions before returning it in getChatMember. 2021-07-02 21:30:27 +03:00
Andrea Cavalli e8c9db61d0 Merge remote-tracking branch 'td/master' 2021-07-02 13:52:51 +02:00
Andrea Cavalli c41ec7df43 Merge remote-tracking branch 'td/master' 2021-06-30 13:31:50 +02:00
levlam f210906dca Support updateBotCommands. 2021-06-28 18:32:29 +03:00
levlam 9b85516cfd Move bot command handling functions to BotCommand.cpp. 2021-06-22 04:25:15 +03:00
levlam e8b32d9b05 Add td_api::deleteCommands. 2021-06-22 04:17:44 +03:00
levlam 337dbc86d9 Remove class BotInfo. 2021-06-21 04:30:02 +03:00
levlam 9940dd74db Remove botInfo class from API. 2021-06-21 04:14:29 +03:00
levlam 1904aa77b1 Add bot_commands to *Full. 2021-06-21 04:01:13 +03:00
levlam 5f9fd502b7 Replace botInfo with commands in userFullInfo. 2021-06-21 02:36:04 +03:00
levlam f165429143 Add classes BotCommand and BotCommands. 2021-06-21 02:08:11 +03:00
levlam d9dc6f875d Move bot description from BotInfo to UserFull. 2021-06-21 01:12:34 +03:00
levlam 1202d55e27 Add getCommands method. 2021-06-19 04:18:02 +03:00
levlam 62a543cb35 Add BotCommandScope to setCommands. 2021-06-19 04:00:23 +03:00
levlam 9440925711 Move some classes inside corresponding managers. 2021-06-18 03:06:20 +03:00
levlam 1e8724127a Add cache of channel participants for bots-administrators. 2021-06-12 23:53:14 +03:00
levlam 6f51690275 Add ContactsManager::on_get_channel_participant. 2021-06-11 20:02:49 +03:00