Commit Graph

3029 Commits

Author SHA1 Message Date
levlam
7d2d0b9f2e Improve names of MessageReaction functions. 2023-09-27 17:25:03 +03:00
levlam
de32750836 Use Dependencies to load data for binlog events if appropriate. 2023-10-08 23:16:59 +03:00
levlam
14b10c7682 Fix my recent chosen reaction chat id also for objects received from the server. 2023-10-04 16:02:53 +03:00
levlam
74679944af Remove error-prone server_time_cached. 2023-10-04 12:24:58 +03:00
levlam
ceaa37fe0d Simplify set_dialog_is_pinned implementation. 2023-10-01 21:49:15 +03:00
levlam
469f87c2bc Allow to remove media_album_id for yet unsent messages. 2023-09-28 00:50:09 +03:00
levlam
ab673a959b Add some index checks. 2023-09-26 14:03:10 +03:00
levlam
84f2985154 Init boolean message fields closer to their first usage. 2023-09-25 22:52:42 +03:00
levlam
83df57a102 Remove MessageInfo.flags. 2023-09-25 22:48:35 +03:00
levlam
09ced5689b Remove most MESSAGE_FLAG usages. 2023-09-25 22:09:31 +03:00
levlam
155095dff7 Move get_message_public_forwards to StatisticsManager. 2023-09-25 21:39:02 +03:00
levlam
7dc1aed0d2 Use can_get_message_statistics in send_get_message_public_forwards_query. 2023-09-25 21:23:14 +03:00
levlam
0d16085d69 Just ignore views of sponsored messages from history preview or unidentified places. 2023-09-24 03:09:53 +03:00
levlam
1e2c0ce814 Rename FullMessageId to MessageFullId. 2023-09-21 19:11:17 +03:00
levlam
b4f6e716ac Add source to get_(chat|channel|secret_chat)_force. 2023-09-21 18:56:13 +03:00
levlam
67cf6d7fe5 Don't log not found chats in load_dialogs. 2023-09-20 20:44:21 +03:00
levlam
6b17c0fdec Use error object in td_api::messageSendingStateFailed/updateMessageSendFailed. 2023-09-19 19:04:56 +03:00
levlam
d1a2ca9261 Disallow replies to channel stories. 2023-09-05 19:31:14 +03:00
levlam
35a319db20 Poll channel max active story identifiers. 2023-09-05 17:41:33 +03:00
levlam
fb7cb1b1d0 Add MessagesManager::resolve_dialog. 2023-09-15 18:20:21 +03:00
levlam
25b8caff59 Add MessagesManager::send_resolve_dialog_username_query. 2023-09-15 17:44:32 +03:00
levlam
f899fe9145 Don't delete notifications when initializing last_new_message_id. There should be no old notifications anyway, but there could be a pending notification about the being added message. 2023-09-13 16:57:44 +03:00
levlam
e65e5b0b49 Extract delete_all_dialog_notifications from delete_all_dialog_messages_from_database. 2023-09-13 16:29:37 +03:00
levlam
a87340edbd Tend to return more results from searchPublicChats. 2023-09-11 23:30:54 +03:00
levlam
793e2ed0be Move account-related methods to AccountManager. 2023-09-08 16:34:11 +03:00
levlam
280209a220 Self-destruct media in private chats when they expire on the other side. 2023-09-07 00:31:05 +03:00
levlam
5ebbda1c26 Add td_api::MessageSelfDestructType. 2023-09-06 21:27:45 +03:00
levlam
aec04a2d01 Support immediately disappearing photos and videos. 2023-09-06 20:45:15 +03:00
levlam
745adb7c52 Add some logging. 2023-09-11 15:09:24 +03:00
levlam
40973f0977 Start chat unload timer when the first message is added to the chat, if it is definitely not the last database message. 2023-09-11 00:14:58 +03:00
levlam
249da789e7 Add messageBotWriteAccessAllowed.by_request. 2023-08-25 16:53:50 +03:00
levlam
917c9dc013 Add ForumTopicManager::read_forum_topic_messages. 2023-09-04 15:34:54 +03:00
levlam
1a2bfad094 Move message content self-destruct time checks to create_input_message_content. 2023-08-29 18:51:57 +03:00
levlam
04b376782c Improve field name. 2023-08-27 02:48:18 +03:00
levlam
1dcd78f1ed Add source to have_dialog_info_force. 2023-08-26 05:00:15 +03:00
levlam
c83149661b Remove useless checks. 2023-08-26 04:38:33 +03:00
levlam
432f77ae85 Use NotificationObjectId in NotificationGroupInfo. 2023-08-26 00:48:57 +03:00
levlam
4455255d9b Add class NotificationObjectId. 2023-08-25 02:04:44 +03:00
levlam
a85d3663bf Add MessagesManager::reload_dialog_notification_settings. 2023-08-24 17:29:22 +03:00
levlam
1e6970e3fe Add NotificationGroupFromDatabase struct. 2023-08-23 19:38:06 +03:00
levlam
fbc74dc8f4 Add and use NotificationManager::have_group_force. 2023-08-23 19:16:57 +03:00
levlam
2fc806785f Use CHECK in MessagesManager::get_dialog_notification_group_id. 2023-08-23 18:54:03 +03:00
levlam
d8472358dc Add MessagesManager::get_story_notification_settings. 2023-08-22 18:55:59 +03:00
levlam
15c14e4983 Use object_id instead of message_id in NotificationGroupInfo. 2023-08-22 16:32:40 +03:00
levlam
ce1fdf097c Add NotificationGroupInfo.has_group_id. 2023-08-22 02:34:26 +03:00
levlam
5144656f2b Add MessagesManager::is_dialog_notification_group_id. 2023-08-22 02:31:47 +03:00
levlam
1289a62c16 Make the rest NotificationGroupInfo fields private. 2023-08-22 00:01:29 +03:00
levlam
db9ca1a847 Add NotificationGroupInfo::is_valid(). 2023-08-21 23:03:55 +03:00
levlam
a93322ae32 Always remove unneeded last_notification_id_. 2023-08-21 22:40:17 +03:00
levlam
8116952371 Make NotificationGroupInfo.last_notification_date_ private. 2023-08-21 22:21:06 +03:00