Commit Graph

8240 Commits

Author SHA1 Message Date
levlam
2ff3233115 Add class OrderedMessages. 2023-05-02 18:04:54 +03:00
levlam
5ef84c5c65 Move class OrderedMessage out of MessagesManager. 2023-05-02 17:38:55 +03:00
levlam
df626f266e Inline create_ordered_message. 2023-05-02 17:30:12 +03:00
levlam
316ba04a47 Inline treap_find_message. 2023-05-02 17:25:15 +03:00
levlam
453a53c953 Remove return value from treap_delete_message. 2023-05-02 17:18:05 +03:00
levlam
16873cad78 Ignore message order in find_messages. 2023-05-02 16:54:52 +03:00
levlam
0af40e53ac Inline delete_all_dialog_messages_from_database. 2023-05-02 16:46:37 +03:00
levlam
fe20d43694 Remove MessagesManager::set_message_id. 2023-05-02 16:18:48 +03:00
levlam
7832c5d78c Store message order separately from messages themselves. 2023-05-02 16:07:01 +03:00
levlam
36fede32c6 Reuse message iterator in MessagesManager::do_delete_message. 2023-05-02 14:59:20 +03:00
levlam
b9210f852c Simplify attach_message_to_next/attach_message_to_previous usage. 2023-05-02 14:35:42 +03:00
levlam
0191b7bdb7 Initialize message->have_previous/have_next only after message is added to treap. 2023-05-02 14:21:03 +03:00
levlam
2bf7509603 Attach message to next/previous even it is outdated. 2023-05-02 13:35:10 +03:00
levlam
aace2a6465 Explicitly pass have_previous and have_next to add_message_to_dialog. 2023-05-02 13:22:13 +03:00
levlam
8a72bb7602 Don't use have_previous/have_next in update_message. 2023-05-02 13:12:29 +03:00
levlam
e2b0c750c1 Remove MessagesIteratorBase template parameter. 2023-05-02 00:57:37 +03:00
levlam
aa6e85404a Store scheduled messages in a HashTable. 2023-05-02 00:52:23 +03:00
levlam
713b1f086e Add MessagesManager::have_dialog_scheduled_messages_in_memory helper. 2023-05-01 23:15:54 +03:00
levlam
5397fe43e0 Ignore stored Message::have_previous/have_next flags. 2023-05-01 22:43:08 +03:00
levlam
77dbb2bf68 Don't use MessageSearchFilter::Pinned for bots. 2023-05-01 16:55:12 +03:00
levlam
8757f540ac Force postponed updateChatReadInbox before returning the chat. 2023-05-01 16:41:04 +03:00
levlam
0e02512f47 Ensure that bots doesn't access message index counts. 2023-05-01 16:33:32 +03:00
levlam
b40865f81c Do nothing in on_message_deleted_from_database for bots. 2023-05-01 16:03:23 +03:00
levlam
a544fc205f Call on_message_deleted_from_database for failed to add from database messages. 2023-05-01 15:58:01 +03:00
levlam
730dac8dfe Add MessagesManager::on_message_deleted_from_database. 2023-05-01 15:48:35 +03:00
levlam
3c2e08633b Delay updateChatReadInbox updates in opened chats. 2023-05-01 15:33:51 +03:00
levlam
03e4013c9d Don't resave chat when sending postponed updateChatReadInbox. 2023-05-01 15:17:08 +03:00
levlam
f8853fb938 Skip new entities for some bots. 2023-05-01 13:44:41 +03:00
levlam
5aff4aa27b Hide global draft for forum chats. 2023-04-29 21:58:39 +03:00
levlam
ba4a851017 tg_cli: fix variable type. 2023-04-28 16:46:28 +03:00
levlam
bde874c1e7 Fix init_jni_vars for abstract classes. 2023-04-28 16:43:13 +03:00
levlam
b9d431ccac tg_cli: ignore Terminal input sequences. 2023-04-27 14:13:32 +03:00
levlam
288895d984 Fix warning. 2023-04-26 23:10:14 +03:00
levlam
a05453a2c3 Remove unused variable. 2023-04-26 22:36:06 +03:00
levlam
36a45607f2 Use lazy initialization for Java class identifiers to avoid global reference table overflow on some Android 4 devices. 2023-04-26 17:15:53 +03:00
levlam
c62de5138c Simplify fetch for empty td_api objects. 2023-04-26 16:51:41 +03:00
levlam
06a3ec7d7a Improve javadoc. 2023-04-26 16:26:20 +03:00
levlam
5ad95e78bf Improve variable names. 2023-04-25 16:51:08 +03:00
levlam
e79741dca0 Improve Poll field names. 2023-04-25 15:29:24 +03:00
levlam
cfe3e19231 Improve PollOption field names. 2023-04-25 15:16:29 +03:00
levlam
42c585b7ed Simplify voter list handling. 2023-04-25 14:13:34 +03:00
levlam
65d4a7110c Improve documentation. 2023-04-24 22:25:29 +03:00
levlam
868d894779 Don't autostart blocked bots. 2023-04-24 16:03:08 +03:00
levlam
f755ed8e97 Fix forward declaration usage. 2023-04-24 15:09:37 +03:00
levlam
bed72ccf14 Improve variable names. 2023-04-22 23:46:43 +03:00
levlam
328b8649d8 Fix SetBotInfoQuery. 2023-04-21 15:57:32 +03:00
levlam
8517026415 Update version to 1.8.14. 2023-04-21 13:15:29 +03:00
levlam
78c41b9fef Use local variable for wakeup_at. 2023-04-20 17:24:30 +03:00
levlam
0c638d3531 Avoid duplicate session wake up time logging. 2023-04-20 17:19:38 +03:00
levlam
15e9a2bc1f Remove old comment. 2023-04-19 18:19:12 +03:00