levlam
|
85aedaa8c0
|
Add more logic to OrderedMessages::insert.
|
2023-05-03 11:48:06 +03:00 |
|
levlam
|
b8cd0bb597
|
Improve OrderedMessages::erase.
|
2023-05-03 01:34:58 +03:00 |
|
levlam
|
28b742e7d3
|
Improve OrderedMessages::insert.
|
2023-05-03 00:25:21 +03:00 |
|
levlam
|
e39757b6ec
|
Make OrderedMessage.message_id_ private.
|
2023-05-02 23:49:59 +03:00 |
|
levlam
|
aa7627108b
|
Improve OrderedMessage field names.
|
2023-05-02 23:27:37 +03:00 |
|
levlam
|
b00dfaf493
|
Make some OrderedMessage fields private.
|
2023-05-02 23:18:28 +03:00 |
|
levlam
|
128aec1d59
|
Make OrderedMessages fields private.
|
2023-05-02 23:14:35 +03:00 |
|
levlam
|
5ecc3a0968
|
Use traverse_messages to find minimum message identifier.
|
2023-05-02 23:11:04 +03:00 |
|
levlam
|
0d1cdc3e60
|
Add OrderedMessages::auto_attach_message.
|
2023-05-02 23:00:11 +03:00 |
|
levlam
|
6e4ebc56d1
|
Move attach_message_to_previous/attach_message_to_next to OrderedMessages.
|
2023-05-02 22:39:50 +03:00 |
|
levlam
|
4fe8137244
|
Use ConstIterator to find the last message.
|
2023-05-02 22:21:37 +03:00 |
|
levlam
|
494a25c19a
|
Fix find_unloadable_messages.
|
2023-05-02 22:06:08 +03:00 |
|
levlam
|
e9ee762f60
|
Implement find_unloadable_messages with traverse_messages.
|
2023-05-02 21:54:11 +03:00 |
|
levlam
|
d6ccdfeac6
|
Add generic OrderedMessages::find_messages.
|
2023-05-02 21:27:16 +03:00 |
|
levlam
|
233984f1e3
|
Move iterators to class OrderedMessages.
|
2023-05-02 19:07:02 +03:00 |
|
levlam
|
0a3ecfd03c
|
Add OrderedMessages::find_message_by_date.
|
2023-05-02 18:47:20 +03:00 |
|
levlam
|
f92d108319
|
Add OrderedMessages::find_messages_by_date.
|
2023-05-02 18:40:22 +03:00 |
|
levlam
|
961c9802af
|
Add OrderedMessages::find_newer_messages.
|
2023-05-02 18:17:06 +03:00 |
|
levlam
|
2e0cba4eea
|
Add OrderedMessages::find_older_messages.
|
2023-05-02 18:11:37 +03:00 |
|
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 |
|
levlam
|
4271b9ab45
|
Minor improvements.
|
2023-04-19 15:30:31 +03:00 |
|
levlam
|
b88da80fc2
|
Fix sticker comparison in remove_recent_sticker.
|
2023-04-19 12:11:22 +03:00 |
|
levlam
|
58301570c6
|
Minor improvements.
|
2023-04-19 10:38:55 +03:00 |
|
levlam
|
27c3064c56
|
Remove DialogFilterManager::hide_dialog_filter_new_chats.
|
2023-04-19 10:18:40 +03:00 |
|
levlam
|
1d5d505789
|
Shuffle built-in datacenter IP addresses.
|
2023-04-19 10:07:57 +03:00 |
|
levlam
|
4b7c1aee03
|
Add and use Random::shuffle.
|
2023-04-19 10:02:34 +03:00 |
|
levlam
|
cd20d62c9c
|
Rename Op::string to Op::str to avoid ambiguity.
|
2023-04-19 00:57:46 +03:00 |
|
levlam
|
342c042ed7
|
Improve initialization order.
|
2023-04-19 00:50:13 +03:00 |
|
levlam
|
7ba56726e0
|
Log received language info.
|
2023-04-18 18:58:51 +03:00 |
|
levlam
|
afefdbcca0
|
Update another TLS ClientHello.
|
2023-04-18 18:24:57 +03:00 |
|
levlam
|
35327de43d
|
Update TlsInit.
|
2023-04-18 13:32:48 +03:00 |
|
levlam
|
0243f9d5e0
|
Improve log messages.
|
2023-04-17 18:12:44 +03:00 |
|
levlam
|
8028a810ec
|
Combine setBotInfo queries.
|
2023-04-17 13:28:26 +03:00 |
|
levlam
|
ca842596ab
|
Fix read_dialog_inbox.
|
2023-04-17 12:28:51 +03:00 |
|
levlam
|
6ec89d0dad
|
Combine GetBotInfo queries.
|
2023-04-17 12:23:21 +03:00 |
|
levlam
|
9263db3146
|
Move bot-related methods to BotInfoManager.
|
2023-04-16 23:25:52 +03:00 |
|
levlam
|
4f916a4d8e
|
Add BotInfoManager.
|
2023-04-16 23:12:28 +03:00 |
|
levlam
|
b171040808
|
Fix secret chat creation.
|
2023-04-15 11:39:22 +03:00 |
|
levlam
|
cfe57dbd60
|
Add td_api::readChatList.
|
2023-04-14 15:17:25 +03:00 |
|
levlam
|
d302dbd241
|
Add MessagesManager::read_dialog_inbox.
|
2023-04-14 14:55:59 +03:00 |
|
levlam
|
598ba5422f
|
Add MessagesManager::get_chat_ids_object.
|
2023-04-14 13:38:25 +03:00 |
|
levlam
|
cfc46b1893
|
Load chat with its info if appropriate.
|
2023-04-13 23:13:38 +03:00 |
|
levlam
|
e1eff4a06a
|
Add MessagesManager::get_chat_id_object for checking chat_id before returning it.
|
2023-04-13 22:41:22 +03:00 |
|
levlam
|
50effcbaf4
|
Immediately delete chat background on removing it.
|
2023-04-13 20:10:44 +03:00 |
|
levlam
|
d597764a50
|
Improve switching between user and channel in voice chat.
|
2023-04-13 17:06:02 +03:00 |
|
levlam
|
a21b49ddfd
|
Avoid rare PTS getDifference after logging in.
|
2023-04-12 12:06:28 +03:00 |
|
levlam
|
e85a83ffb7
|
Don't add muted by admin users to recent speakers.
|
2023-04-12 11:24:06 +03:00 |
|
levlam
|
19502cbe15
|
Remove separate td_api::hideChatFolderNewChats.
|
2023-04-12 01:52:36 +03:00 |
|
levlam
|
9ebadf508c
|
Fix handling of min users.
|
2023-04-12 01:45:29 +03:00 |
|
levlam
|
e0bee7757b
|
Improve get_message_user_ids and get_message_channel_ids.
|
2023-04-12 01:33:48 +03:00 |
|
levlam
|
b4d6b68195
|
Replace dark_theme_brightness with dark_theme_dimming.
|
2023-04-12 00:59:53 +03:00 |
|
levlam
|
5df2f3c141
|
Add inputBackgroundPrevious.
|
2023-04-12 00:02:42 +03:00 |
|
levlam
|
b130306ce7
|
Add td_api::setChatBackground.
|
2023-04-11 17:46:55 +03:00 |
|
levlam
|
0ce6dc6834
|
Allow nullptr in BackgroundType::get_background_type.
|
2023-04-10 20:53:45 +03:00 |
|
levlam
|
45dd4eed9a
|
tg_cli: add class BackgroundType.
|
2023-04-10 20:22:10 +03:00 |
|
levlam
|
456129935e
|
tg_cli: add as_wallpaper_background.
|
2023-04-10 19:45:15 +03:00 |
|
levlam
|
23e7d8fad1
|
tg_cli: add class InputBackground.
|
2023-04-10 19:41:54 +03:00 |
|
levlam
|
00ed2f85b8
|
Support dark_theme_brightness for chat backgrounds.
|
2023-04-10 18:45:26 +03:00 |
|
levlam
|
13d0536db1
|
Add chat.background.
|
2023-04-10 17:23:21 +03:00 |
|
levlam
|
64b2cb4e12
|
Add class BackgroundInfo.
|
2023-04-10 16:32:59 +03:00 |
|
levlam
|
10562f5bac
|
Add pushMessageContentChatSetBackground.
|
2023-04-10 15:14:03 +03:00 |
|
levlam
|
0823c902bd
|
Add td_api::messageChatSetBackground.
|
2023-04-10 14:12:35 +03:00 |
|
levlam
|
4c27e92006
|
Add "chat_folder_invite_link_count_max" and "added_shareable_chat_folder_count_max" options.
|
2023-04-10 12:46:16 +03:00 |
|
levlam
|
90967ba8cf
|
Improve source in get_channel_full_force.
|
2023-04-09 23:47:47 +03:00 |
|
levlam
|
bef7184566
|
Improve have_input_peer for bots.
|
2023-04-09 23:00:44 +03:00 |
|
levlam
|
a52b6f025f
|
Add td_api::getChatsForChatFolderInviteLink.
|
2023-04-09 21:54:40 +03:00 |
|
levlam
|
33ac156bc0
|
Increase appConfig version.
|
2023-04-09 01:50:02 +03:00 |
|
levlam
|
d6b53d61fc
|
Use request promise in td_api::getChatFolder.
|
2023-04-09 01:35:42 +03:00 |
|
levlam
|
5872f0951a
|
Use bigger delay for secret chat accepting on desktops.
|
2023-04-08 23:49:47 +03:00 |
|
levlam
|
d986f0237c
|
Return error if no chat types are allowed.
|
2023-04-07 16:11:19 +03:00 |
|
levlam
|
b4676dc57a
|
Various fixes.
|
2023-04-07 16:02:31 +03:00 |
|
levlam
|
2a70fec0b0
|
Add inlineKeyboardButtonTypeSwitchInline.target_chat.
|
2023-04-07 14:00:10 +03:00 |
|
levlam
|
6fde8184af
|
Improve SetBotInfoQuery.
|
2023-04-07 01:15:16 +03:00 |
|
levlam
|
9b089bc194
|
Improve on_set_profile_photo.
|
2023-04-07 00:53:13 +03:00 |
|
levlam
|
aebf904513
|
Various chat folder fixes.
|
2023-04-06 23:15:22 +03:00 |
|
levlam
|
a6b0835b84
|
Add "chat_folder_new_chats_update_period" option.
|
2023-04-06 14:58:46 +03:00 |
|
levlam
|
6cef99b3eb
|
Add two new premiumLimitTypes.
|
2023-04-06 14:24:14 +03:00 |
|
levlam
|
82382ce416
|
Improve documentation.
|
2023-04-05 21:30:14 +03:00 |
|
levlam
|
cc062c6b11
|
Update folder invite links format.
|
2023-04-05 19:56:05 +03:00 |
|
levlam
|
f431c8ba5a
|
Add td_api::hideChatFolderNewChats.
|
2023-04-05 19:43:58 +03:00 |
|
levlam
|
758926bbed
|
Add td_api::addChatFolderNewChats.
|
2023-04-04 16:35:31 +03:00 |
|
levlam
|
e6cc743c33
|
Add td_api::getChatFolderNewChats.
|
2023-04-04 16:21:31 +03:00 |
|
levlam
|
19e15f283c
|
Improve checkChatUsernameResultUsernamePurchasable detection.
|
2023-04-03 21:33:04 +03:00 |
|
levlam
|
2e5bab9c48
|
Add messageGiftedPremium.gifter_user_id.
|
2023-04-03 21:20:41 +03:00 |
|
levlam
|
e4717bae0e
|
Send updateUserFullInfo when bot edit links are changed.
|
2023-04-03 21:04:22 +03:00 |
|
levlam
|
cc0d148ce2
|
Add and use static is_user_* functions.
|
2023-04-03 20:43:25 +03:00 |
|
levlam
|
c44a2d07b5
|
Add edit links to userFull.
|
2023-04-03 20:26:31 +03:00 |
|
levlam
|
e2d3f2694f
|
Improve future salts logging.
|
2023-04-03 19:55:12 +03:00 |
|
levlam
|
d62f9281a7
|
Improve name of internalLinkTypeChatFolderSettings.
|
2023-04-03 18:17:25 +03:00 |
|
levlam
|
c62bbfb583
|
Remove expected error logging.
|
2023-04-03 18:00:44 +03:00 |
|
levlam
|
241021ae83
|
Rename chat filters to chat folders.
|
2023-04-03 17:28:51 +03:00 |
|
levlam
|
b34d1d2c25
|
Update has_my_invite_links when receive the list of all links.
|
2023-04-03 15:16:11 +03:00 |
|
levlam
|
613ab34f09
|
Add chatFilterInfo.has_my_invite_links.
|
2023-04-03 15:06:37 +03:00 |
|
levlam
|
45a6d9864c
|
Add chatInviteLinkMember.via_chat_filter_invite_link.
|
2023-04-03 13:36:47 +03:00 |
|
levlam
|
b374eeb6e0
|
Add chatEventMemberJoinedByInviteLink.via_chat_filter_invite_link.
|
2023-04-03 13:11:14 +03:00 |
|
levlam
|
e50e3e0b3a
|
Add updateChatMember.via_chat_filter_invite_link.
|
2023-04-02 23:45:27 +03:00 |
|
levlam
|
6198a6a842
|
Add td_api::getChatFilterChatsToLeave.
|
2023-04-02 12:40:57 +03:00 |
|
levlam
|
4bf49b246f
|
Add deleteChatFilter.leave_chat_ids.
|
2023-04-02 12:05:04 +03:00 |
|
levlam
|
7085bc4d8f
|
Pass promise to on_update_dialog_filters.
|
2023-04-02 11:53:25 +03:00 |
|
levlam
|
890084df51
|
Add ContactsManager::leave_dialog.
|
2023-04-02 11:46:38 +03:00 |
|
levlam
|
0ca51e8b79
|
Use DialogId::get_chat_ids.
|
2023-04-02 11:24:48 +03:00 |
|