levlam
|
1e65d38483
|
Ignore ReadMessageContents updates for bots.
|
2022-12-22 17:19:33 +03:00 |
|
levlam
|
f1eedfaa47
|
Simplify some usages of optional TL fields.
|
2022-12-18 22:15:57 +03:00 |
|
levlam
|
f97c103e2b
|
Update last read inbox/outbox message identifiers in topics.
|
2022-12-14 14:25:04 +03:00 |
|
levlam
|
848de33676
|
Replace top_thread_message_id in unsupported messages.
|
2022-12-14 13:28:16 +03:00 |
|
levlam
|
0e33195953
|
Move static get_message_id/get_message_dialog_id to corresponding classes.
|
2022-12-12 21:43:49 +03:00 |
|
levlam
|
b634948c15
|
Move static MessageId helpers to MessageId class.
|
2022-12-10 22:57:41 +03:00 |
|
levlam
|
6cbe1825ef
|
Delete left dialogs from filters.
|
2022-12-08 13:14:50 +03:00 |
|
levlam
|
a32bb3e7ef
|
Move get_messages_info to MessagesInfo.cpp.
|
2022-12-07 19:38:42 +03:00 |
|
levlam
|
75453b542f
|
Add separate header for MessagesInfo.
|
2022-12-07 19:28:27 +03:00 |
|
levlam
|
2e139cc895
|
Fix processing of links to messages in General topic.
|
2022-12-07 18:18:39 +03:00 |
|
levlam
|
67a67276a3
|
Support creation of message links for messages in General topic.
|
2022-12-07 17:54:03 +03:00 |
|
levlam
|
1db1532591
|
Add is_forum_channel.
|
2022-12-07 17:21:36 +03:00 |
|
levlam
|
294c99248e
|
Fix add_local_message.
|
2022-12-06 19:32:02 +03:00 |
|
levlam
|
bc2e23a27f
|
Add need_update_dialog_notification_settings.
|
2022-12-06 16:34:17 +03:00 |
|
levlam
|
58d84a1c7e
|
Improve get_dialog_notification_settings(td_api::object_ptr<td_api::chatNotificationSettings> &¬ification_settings).
|
2022-12-06 16:18:11 +03:00 |
|
levlam
|
3c842f1ecb
|
Improve get_dialog_notification_settings(tl_object_ptr<telegram_api::peerNotifySettings>).
|
2022-12-06 15:23:11 +03:00 |
|
levlam
|
d9e16106af
|
Add setForumTopicNotificationSettings.
|
2022-12-06 14:53:54 +03:00 |
|
levlam
|
426c308e23
|
Add ForumTopic cache.
|
2022-12-05 17:37:09 +03:00 |
|
levlam
|
a40acdfcc3
|
Support General forum topic links.
|
2022-12-05 14:13:55 +03:00 |
|
levlam
|
374f3249be
|
Use need_unread_counter.
|
2022-12-05 13:44:50 +03:00 |
|
levlam
|
68ebfa3055
|
Don't try to change top_thread_message_id for messages in dialog.
|
2022-12-04 17:58:18 +03:00 |
|
levlam
|
31fb277acf
|
Fix topic message count.
|
2022-12-02 20:39:52 +03:00 |
|
levlam
|
2f8d60669a
|
Update rights check for setChatMessageTtl.
|
2022-12-02 14:52:02 +03:00 |
|
levlam
|
70cfbab277
|
Extract only relevant random_id from updates.
|
2022-12-02 12:36:31 +03:00 |
|
levlam
|
f8a5f42886
|
Improve return value of UpdatesManager::get_new_messages.
|
2022-12-02 12:11:07 +03:00 |
|
levlam
|
fff8e81261
|
Don't return SetMessagesTTL messages in get_new_messages.
|
2022-12-01 23:44:58 +03:00 |
|
levlam
|
4f737910ab
|
Ignore message interaction info updates for bots.
|
2022-11-29 17:25:43 +03:00 |
|
levlam
|
0cf9eb0b4b
|
Avoid unneeded calls to channels.getDifference.
|
2022-11-29 17:14:45 +03:00 |
|
levlam
|
2844156dfc
|
Allow to specify message_ttl during creation of basic group and channel chats.
|
2022-11-29 15:44:12 +03:00 |
|
levlam
|
62e721fa6f
|
Add messageChatSetTtl.from_user_id.
|
2022-11-29 14:02:05 +03:00 |
|
levlam
|
8b11ef9aa3
|
Apply message_ttl from telegram_api::dialog.
|
2022-11-29 13:08:06 +03:00 |
|
levlam
|
33288a93d9
|
Update layer to 150.
|
2022-11-25 14:57:21 +03:00 |
|
levlam
|
0dc327bd3f
|
Delete all topics from database when chat is deleted.
|
2022-11-16 17:35:12 +03:00 |
|
levlam
|
ff31fa1b52
|
Unload forum topic information after all messages are unloaded.
|
2022-11-15 17:37:31 +03:00 |
|
levlam
|
0f357cdb95
|
Apply information about forum topics from messages.channelMessages.
|
2022-11-15 16:00:19 +03:00 |
|
levlam
|
d581e0499a
|
Allow to read deleted thread messages.
|
2022-11-28 17:54:32 +03:00 |
|
levlam
|
409f7f5dd7
|
Do nothing in MessagesManager::reload_voice_chat_on_search before authorization.
|
2022-11-25 18:58:17 +03:00 |
|
levlam
|
af05db3f15
|
Add td::Hash and use it everywhere instead of unusable std::hash.
|
2022-11-23 19:37:32 +03:00 |
|
levlam
|
0455f8cfbb
|
Skip too old channel difference for bots.
|
2022-11-23 13:21:46 +03:00 |
|
levlam
|
82b9d3493e
|
Adjust last_read_inbox_message_id in MessageReplyInfo by last read chat message.
|
2022-11-21 19:11:38 +03:00 |
|
levlam
|
f94e27fe12
|
Improve MessageReplyInfo field names.
|
2022-11-21 18:35:28 +03:00 |
|
levlam
|
2207d668e0
|
Fix postponed drop of default message sender.
|
2022-11-21 17:56:16 +03:00 |
|
levlam
|
c7f7abb6e7
|
Drop chat message sender when chat become private.
|
2022-11-21 17:19:23 +03:00 |
|
levlam
|
68627a0c3f
|
Add source to cancel_upload_file.
|
2022-11-21 14:33:19 +03:00 |
|
levlam
|
0b387a61ad
|
Add source to dup_file_id.
|
2022-11-21 11:40:43 +03:00 |
|
levlam
|
7724f68fa2
|
Simplify variables initialization.
|
2022-11-19 12:29:25 +03:00 |
|
levlam
|
2d2446ae77
|
Improve updating of reply info.
|
2022-11-19 11:21:41 +03:00 |
|
levlam
|
2fad9afd49
|
Hide comments button if the user is banned in the discussion group.
|
2022-11-18 16:35:16 +03:00 |
|
levlam
|
f8e2af3f59
|
Rename size() to calc_size() for WaitFree hash tables.
|
2022-11-18 13:16:24 +03:00 |
|
levlam
|
830806937e
|
Improve source type in on_get_channel_error/on_get_dialog_error.
|
2022-11-17 14:18:11 +03:00 |
|
levlam
|
66032b4ccf
|
Use get_next_message_id.
|
2022-11-16 23:55:45 +03:00 |
|
levlam
|
b2b59b02be
|
Add draft of history generation for better gap handling.
|
2022-11-14 20:12:23 +03:00 |
|
levlam
|
0461aff289
|
Hide replies to root message in topic messages.
|
2022-11-14 14:23:39 +03:00 |
|
levlam
|
f6f94e5255
|
Improve getRepliedMessage.
|
2022-11-13 03:13:11 +03:00 |
|
levlam
|
f5872ee11a
|
Avoid deletion of message files for bots.
|
2022-11-11 23:13:44 +03:00 |
|
levlam
|
ba5b950055
|
Don't clear draft when inline message is sent not from input field.
|
2022-11-11 16:11:55 +03:00 |
|
levlam
|
f670d646c9
|
Unload at most 5000 messages at a time.
|
2022-11-11 16:06:05 +03:00 |
|
levlam
|
8e32de133a
|
Rename MessagesDb to MessageDb.
|
2022-11-09 20:35:22 +03:00 |
|
levlam
|
3592494daf
|
Don't send updates about unloading from cache of unknown to app messages.
|
2022-11-08 14:00:11 +03:00 |
|
levlam
|
ef5107fcc4
|
Remove unused from_cache parameter in send_update_delete_messages.
|
2022-11-08 13:43:46 +03:00 |
|
levlam
|
7eba19887a
|
Remove ignored Status responses from DialogDb.
|
2022-11-07 23:19:32 +03:00 |
|
levlam
|
36686c29a6
|
Remove unused Status responses in MessagesDb.
|
2022-11-07 22:19:44 +03:00 |
|
levlam
|
39cee43b9f
|
Fix last_added_message_id.
|
2022-11-07 20:08:25 +03:00 |
|
levlam
|
16d454793c
|
Allow change of replied message to top thread message.
|
2022-11-07 18:19:57 +03:00 |
|
levlam
|
cc9de08be3
|
Improve source for error suppression.
|
2022-11-07 15:52:01 +03:00 |
|
levlam
|
3a9ea05a50
|
Don't try to fail message edits while closing.
|
2022-11-07 13:54:42 +03:00 |
|
levlam
|
7df7dfcd62
|
Output main chat list position along with all folder identifiers.
|
2022-11-04 17:40:44 +03:00 |
|
levlam
|
ce09421718
|
Update main chat list position after adding or deleting chat lists.
|
2022-11-04 17:26:41 +03:00 |
|
levlam
|
477fe509b5
|
Fix adding of a chat list to beginning.
|
2022-11-04 17:23:43 +03:00 |
|
levlam
|
ff0c205fe9
|
Generate new links for topic messages.
|
2022-11-04 15:56:16 +03:00 |
|
levlam
|
939d43129c
|
Support message links for forum topics.
|
2022-11-04 14:40:57 +03:00 |
|
levlam
|
2e3cc8619e
|
Avoid call to is_deleted_message in delete_dialog_messages if it isn't needed.
|
2022-11-03 20:25:40 +03:00 |
|
levlam
|
136dfd15df
|
Use delete_dialog_messages if appropriate.
|
2022-11-03 19:56:53 +03:00 |
|
levlam
|
f8783063f3
|
Improve parameter name.
|
2022-11-03 19:37:07 +03:00 |
|
levlam
|
e8d1c7deae
|
Remove from_updates parameter from delete_dialog_messages.
|
2022-11-03 19:26:22 +03:00 |
|
levlam
|
df45195cc6
|
Split delete_dialog_messages in two functions.
|
2022-11-03 19:14:35 +03:00 |
|
levlam
|
695fab3323
|
Refactor delete_newer_server_messages_at_the_end.
|
2022-11-03 18:35:40 +03:00 |
|
levlam
|
17bc097d12
|
Destroy deleted messages on another thread.
|
2022-11-03 18:10:51 +03:00 |
|
levlam
|
d8c36c8062
|
Improve handling of too long messages and captions.
|
2022-11-03 16:46:50 +03:00 |
|
levlam
|
4cc5ed345d
|
Improve MessateReplyHeader processing.
|
2022-11-02 14:04:43 +03:00 |
|
levlam
|
481387b12d
|
Unpin locally only messages from forum topics.
|
2022-11-02 08:58:13 +03:00 |
|
levlam
|
69f03d8376
|
Improve message reply header handling.
|
2022-11-02 06:28:35 +03:00 |
|
levlam
|
88e2b735b4
|
Do nothing for bots in on_dialog_linked_channel_updated.
|
2022-10-31 19:46:04 +03:00 |
|
levlam
|
342f446631
|
Support unpinning of all messages in a message thread.
|
2022-10-31 19:44:01 +03:00 |
|
levlam
|
f58737a0c9
|
Improve getMessageThread for forums.
|
2022-10-31 11:51:08 +03:00 |
|
levlam
|
fee05c93b5
|
Avoid expected warning.
|
2022-10-31 11:16:56 +03:00 |
|
levlam
|
36b19416ac
|
Avoid warning for allowed channel useless updates.
|
2022-10-30 12:16:24 +03:00 |
|
levlam
|
43deaf4502
|
Add td_api::deleteForumTopic.
|
2022-10-30 00:35:37 +03:00 |
|
levlam
|
6acdfbdf9e
|
Keep information about dropped MessageReplyInfo.
|
2022-10-29 20:18:49 +03:00 |
|
levlam
|
ff43a82359
|
Improve topic message detection.
|
2022-10-29 02:05:31 +03:00 |
|
levlam
|
6ec8f90367
|
Allow to get thread of failed to send and yet unsent messages.
|
2022-10-28 14:59:23 +03:00 |
|
levlam
|
03d17c32c3
|
Add various fixes.
|
2022-10-28 14:09:40 +03:00 |
|
levlam
|
fec023500c
|
Add comments about ignored top_thread_message_id.
|
2022-10-28 13:16:42 +03:00 |
|
levlam
|
4c7e9ad8a6
|
Add Message.is_topic_message.
|
2022-10-28 12:43:51 +03:00 |
|
levlam
|
f79e67cab8
|
Apply edited data from service message about forum topics.
|
2022-10-27 19:03:58 +03:00 |
|
levlam
|
8f0d216601
|
Don't update channel pts if failed to process updateEditChannelMessage.
|
2022-10-26 14:52:51 +03:00 |
|
levlam
|
e1bc6a3394
|
Disallow deletion of TopicCreate service messages.
|
2022-10-26 13:58:13 +03:00 |
|
levlam
|
cacdedc8d7
|
Check message thread identifier with can_use_top_thread_message_id while changing message draft.
|
2022-10-24 18:23:08 +03:00 |
|
levlam
|
75739dd0ea
|
Allow to pass message thread identifier to readAllChatReactions.
|
2022-10-24 17:04:05 +03:00 |
|
levlam
|
df561b7822
|
Allow to pass message thread identifier to readAllChatMentions.
|
2022-10-24 16:57:26 +03:00 |
|
levlam
|
edc660ba59
|
Allow to get unread mentions and reactions in a message thread.
|
2022-10-23 22:16:20 +03:00 |
|
levlam
|
6a16492266
|
Support can_manage_topics administrator right and chat permission.
|
2022-10-23 13:20:53 +03:00 |
|
levlam
|
62bcac0198
|
Support forwarding of messages to message threads.
|
2022-10-21 18:02:39 +03:00 |
|
levlam
|
c9f8390bd5
|
Move TranscribeAudioQuery to TranscriptionInfo.cpp.
|
2022-10-20 19:52:20 +03:00 |
|
levlam
|
c941f488a0
|
Proxy speech recognition methods through MessagesManager.
|
2022-10-19 17:56:18 +03:00 |
|
levlam
|
5e0103c442
|
Add messageForumTopicEdited.
|
2022-10-18 22:16:03 +03:00 |
|
levlam
|
d68836f482
|
Add messageForumTopicCreated.
|
2022-10-18 16:08:53 +03:00 |
|
levlam
|
177b5f1e89
|
Pass top_thread_message_id to server methods for message sending.
|
2022-10-18 14:23:46 +03:00 |
|
levlam
|
bf6b804d7a
|
Keep top_thread_message_id for yet unsent scheduled messages.
|
2022-10-18 13:05:05 +03:00 |
|
levlam
|
41262d4629
|
Immediately succeed reorder usernames queries if they can't change order.
|
2022-10-17 17:29:13 +03:00 |
|
levlam
|
4067ba66d3
|
Improve backward compatibility.
|
2022-10-17 15:44:30 +03:00 |
|
levlam
|
897032e0fd
|
Add support for multiple usernames.
|
2022-10-12 21:04:18 +03:00 |
|
levlam
|
87174e5e81
|
Update layer to 148.
|
2022-10-07 18:04:00 +03:00 |
|
levlam
|
76f5f3316f
|
Improve order of available message senders.
|
2022-10-29 12:31:06 +03:00 |
|
levlam
|
88ffdb62e7
|
Split NotificationSettings.h.
|
2022-10-25 01:22:04 +03:00 |
|
levlam
|
d9fecc6cb0
|
Explicitly set promise in on_update_message_reactions.
|
2022-10-19 06:07:30 +03:00 |
|
levlam
|
9ceab403c6
|
Send updateMessageSendFailed when closing for being uploaded messages.
|
2022-10-16 14:39:26 +03:00 |
|
levlam
|
9b16702674
|
Add ContactsManager::get_dialog_search_text.
|
2022-10-11 20:35:35 +03:00 |
|
levlam
|
62403aac3c
|
Simplify username caching.
|
2022-10-11 15:13:06 +03:00 |
|
levlam
|
188a7b7c3e
|
Pass promise to FileManager::download.
|
2022-10-10 15:40:39 +03:00 |
|
levlam
|
445cd4118d
|
Improve 'always be' spelling.
|
2022-10-09 19:18:33 +03:00 |
|
levlam
|
7f5f6e41ad
|
Minor improvements.
|
2022-10-09 19:00:14 +03:00 |
|
levlam
|
5a29dcd337
|
Avoid redundant usages of Status::error().
|
2022-10-09 14:15:54 +03:00 |
|
levlam
|
d4bf6f9239
|
Send updateMessageSendFailed about being sent messages on closing if there is no message database.
|
2022-10-07 01:38:39 +03:00 |
|
levlam
|
b1f2e553cb
|
Explicitly fail some promises stored in MessagesManager.
|
2022-10-07 01:28:18 +03:00 |
|
levlam
|
09cffa693a
|
Improve source for telegram_api::updates.
|
2022-10-06 18:21:25 +03:00 |
|
levlam
|
7ff1ec04b1
|
Improve log and error messages.
|
2022-10-05 21:29:05 +03:00 |
|
levlam
|
8d1ee490ad
|
Update response of getChatAvailableMessageSenders.
|
2022-10-04 17:53:56 +03:00 |
|
levlam
|
af5ddbfa15
|
Use WaitFreeHashMap for resolved_usernames.
|
2022-10-04 14:53:46 +03:00 |
|
levlam
|
91ba17c47b
|
Fix read_date usage.
|
2022-10-04 14:18:57 +03:00 |
|
levlam
|
882b08f935
|
Support empty filter in getChatMessagePosition.
|
2022-10-03 20:55:15 +03:00 |
|
levlam
|
08ce44a194
|
Avoid message type checks in treap_insert/treap_find.
|
2022-10-02 00:36:11 +03:00 |
|
levlam
|
1f7258f697
|
Add getChatMessagePosition.
|
2022-09-30 20:04:21 +03:00 |
|
levlam
|
92f9f8bdd0
|
Support extended media polling.
|
2022-09-24 22:17:17 +03:00 |
|
levlam
|
7f353cd064
|
Support telegram_api::updateMessageExtendedMedia.
|
2022-09-23 12:07:07 +03:00 |
|
levlam
|
e9b181ec42
|
Support ExtendedMedia in MessageContent.
|
2022-09-22 18:05:58 +03:00 |
|
levlam
|
798f4fdb2f
|
Add MessageReactions::add_min_channels.
|
2022-09-24 21:09:07 +03:00 |
|
levlam
|
375446ac88
|
Add MessageReactions::add_dependencies.
|
2022-09-24 21:07:35 +03:00 |
|
levlam
|
da00ea6f86
|
Add MessageReactions::get_message_reactions_object.
|
2022-09-24 20:58:54 +03:00 |
|
levlam
|
c9f7603ad7
|
Add MessageReactions::are_consistent_with_list.
|
2022-09-24 20:15:38 +03:00 |
|
levlam
|
831f0bead3
|
Send updateMessageContent about edited messages.
|
2022-09-21 18:02:28 +03:00 |
|
levlam
|
23fe3994bf
|
Don't unload messages from the last media album.
|
2022-09-21 17:44:25 +03:00 |
|
levlam
|
e9ccb43ccd
|
Use const Message * earlier in add_message_to_dialog.
|
2022-09-21 17:30:03 +03:00 |
|
levlam
|
097f3d42e1
|
Fix error code in on_upload_error/on_download_error.
|
2022-09-20 02:02:28 +03:00 |
|
levlam
|
06e1ebf809
|
Add check just in case.
|
2022-09-19 16:34:28 +03:00 |
|
levlam
|
b9bd024969
|
Update message notifications after external changes of message content.
|
2022-09-19 16:26:56 +03:00 |
|
levlam
|
bb6fc999f8
|
Add on_message_notification_changed function.
|
2022-09-19 16:19:59 +03:00 |
|
levlam
|
618bface99
|
Save voice message to database when it is recognized.
|
2022-09-19 11:15:13 +03:00 |
|
levlam
|
8d0cb5b82d
|
Return is_content_changed from update_message_content.
|
2022-09-19 01:12:20 +03:00 |
|
levlam
|
5cf248ae01
|
Call on_message_changed after send_update_message_content.
|
2022-09-19 01:05:23 +03:00 |
|