Commit Graph

5449 Commits

Author SHA1 Message Date
levlam
314035a129 Use MessagesDbMessage instead of std::pair. 2021-10-01 11:22:56 +03:00
levlam
37a10fad57 Fix compilation error. 2021-10-01 00:12:28 +03: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
levlam
5f19e0267f Add warning if TdDb::check_encryption fails. 2021-09-29 20:59:20 +03:00
levlam
2d9b7a6e93 Run loop after toggled top chats just in case. 2021-09-29 20:23:39 +03:00
levlam
665ae9434e Use error code 400 in Td.cpp. 2021-09-29 19:19:24 +03:00
levlam
39968780ba Replace 'should' with more affirmative verbs in the documentation. 2021-09-29 19:15:08 +03:00
levlam
0686a0cade Exclude chats from chat list from the local public chats search. 2021-09-29 18:40:36 +03:00
levlam
888bd7988c Add warning on failed to open database. 2021-09-29 17:15:36 +03:00
levlam
7caa3075b8 Add CHECK debug. 2021-09-29 17:13:50 +03:00
levlam
90c0f18507 Send authorizationStateClosing when closing before initialization. 2021-09-29 15:41:53 +03:00
levlam
14c2a990b1 Add get_draft_message function. 2021-09-29 14:06:43 +03:00
levlam
2ce0be4fe7 Remove getChatStatisticsUrl method. 2021-09-28 19:08:36 +03:00
levlam
cdb06da112 Add "; pass null" annotations for expected to be null request parameters. 2021-09-28 17:31:00 +03:00
levlam
26ff41deab Reload message from server after receiving MESSAGE_ID_INVALID for a callback query. 2021-09-28 00:14:57 +03:00
levlam
36cbba4d2c Use request promise in td_api::getCallbackQueryAnswer implementation. 2021-09-27 23:22:10 +03:00
levlam
a04423ad66 Use ClientManager in td_c_client. 2021-09-26 22:17:02 +03:00
levlam
493a9e5457 Erase more keys from binlog after database is deleted. 2021-09-26 21:15:31 +03:00
levlam
bc84bfecab Remove legacy loading of recent inline bots only by username. 2021-09-26 20:23:40 +03:00
levlam
ddd2a223dd Prefer to save chats by ID if there is any database. 2021-09-26 20:03:03 +03:00
levlam
c5a2e9a870 Load only chats with known info in MessagesManager::load_dialogs. 2021-09-26 19:38:27 +03:00
levlam
d882e222a7 Make FileStats fields private. 2021-09-26 12:44:18 +03:00
levlam
f317b1561a Document that forward_limit is ignored for added bots. 2021-09-26 08:00:06 +03:00
levlam
e584aa6520 Remove last get_actor_unsafe usages in TopDialogManager. 2021-09-25 22:33:55 +03:00
levlam
81dca20328 Directly call managers in TopDialogManager. 2021-09-25 22:02:55 +03:00
levlam
76a45c8dc0 Imppement GetTopPeersQuery as ResultHandler. 2021-09-25 21:43:59 +03:00
levlam
d3983571a0 Add TopDialogCategory.cpp. 2021-09-25 21:27:32 +03:00
levlam
53dab67f7b Use ResetTopPeerRatingQuery instead of dispatch_with_callback. 2021-09-25 21:12:36 +03:00
levlam
1849953e78 Implement ToggleTopPeers as ResultHandler. 2021-09-25 20:33:51 +03:00
levlam
9115ba4aa5 Move topChat methods logic to TopDialogManager. 2021-09-25 11:37:32 +03:00
levlam
5091aa68e3 Allow direct access to TopDialogManager. 2021-09-24 23:17:38 +03:00
levlam
54277497f7 Save chat themes to binlog. 2021-09-24 17:17:32 +03:00
levlam
ef1bfc7c3e Improve field names. 2021-09-24 16:53:42 +03:00
levlam
66170213fc Add store/parse_background. 2021-09-24 16:03:01 +03:00
levlam
61c3a2bcf5 Remove TD_EXPERIMENTAL_WATCH_OS. 2021-09-24 13:41:22 +03:00
levlam
a1d1d2160b Simplify load_special_sticker_set usage. 2021-09-24 13:08:32 +03:00
levlam
f15093deb3 Ignore MessageReplyInfo with channel_id == 777. 2021-09-24 12:31:27 +03:00
levlam
95d60959b1 Remove redundant checks for is_bot. 2021-09-24 11:07:12 +03:00
levlam
d6f3d9f08a Use error code 400 instead of small error codes. 2021-09-24 10:59:51 +03: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
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
a3c8da47a0 Return void from load_*_full. 2021-09-23 18:52:39 +03:00
levlam
d032ca2ab2 Support adding basic group members through setChatMemberStatus. 2021-09-23 18:39:13 +03:00
levlam
b0b25b53b0 Fix sender_dialog_id in channel push notifications. 2021-09-23 17:40:40 +03:00
levlam
fbd2309b37 Don't remove emoji modifiers in chat action emojis. 2021-09-23 17:16:59 +03:00
levlam
23f585caf0 Unify set SQLite PRAGMAs. 2021-09-23 11:20:42 +03:00