Commit Graph

6732 Commits

Author SHA1 Message Date
levlam
cd9a89fd7d Send updateAnimatedEmojiMessageClicked in non-opened chats. 2021-10-01 20:05:11 +03:00
levlam
13c48e590d Fix profile photo reuploading. 2021-10-01 19:19:14 +03:00
levlam
4a185caa74 Check message_id of loaded from database messages. 2021-10-01 16:43:02 +03:00
levlam
4d180ff0e1 Add MessageId to MessagesDbMessage. 2021-10-01 15:23:38 +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
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
724397dfbd Add tdgrand to the list of examples. 2021-09-26 09:52: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
91f7d06282 Improve error message. 2021-09-25 21:25:51 +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
b9303bf13c Add Telegrand to the list of Rust examples. 2021-09-24 19:42:40 +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