Commit Graph

2203 Commits

Author SHA1 Message Date
levlam
a434bad933 Improve error messages for forwards of messages with protected content. 2022-03-16 15:56:01 +03:00
levlam
37123a50ff Don't create vectors using set iterators. 2022-03-12 13:22:07 +03:00
levlam
1f38124861 Use FlatHashSet. 2022-03-11 21:38:48 +03:00
levlam
8b16cf7271 Make all fields in Dependencies class private. 2022-03-11 15:31:28 +03:00
levlam
a136a9d22b Move methods inside Dependencies class. 2022-03-11 15:10:24 +03:00
levlam
88ce431f39 Minor fixes. 2022-03-09 03:27:03 +03:00
levlam
83d26f3335 Add parameter only_preview to sendMessageAlbum. 2022-02-22 22:42:46 +03:00
levlam
679b70efa5 Return message objects from MessagesManager::send_message_group. 2022-02-22 21:51:35 +03:00
levlam
4e1f2cbf8b Add td_api::searchOutgoingDocumentMessages. 2022-02-22 15:58:16 +03:00
levlam
985927fa2a Never fetch reactions for service messages. 2022-03-08 21:05:46 +03:00
levlam
7102117ed4 Send at most one getMessageViews query for a given message. 2022-03-07 20:17:00 +03:00
levlam
ceb966123b Poll message views every 15 seconds. 2022-03-07 15:34:07 +03:00
levlam
a2d7450d55 Update message reactions, only if the user is online. 2022-03-07 15:24:45 +03:00
levlam
8f5bac2fe0 Reload message reactions every 15 seconds. 2022-03-07 15:20:22 +03:00
levlam
c5908619c2 Reload reactions in new viewed messages. 2022-03-07 14:27:42 +03:00
levlam
04aabd8825 Don't allow to add yet unsent messages to downloads. 2022-03-04 15:16:20 +03:00
levlam
fdd218de4a Reset updateFileDownloads after all downloaded messages are viewed. 2022-03-03 13:44:05 +03:00
levlam
4d7afaedbb Improve DownloadManager initialization. 2022-03-01 23:09:40 +03:00
levlam
119999e684 Improve log message. 2022-03-01 22:12:59 +03:00
levlam
a59e6b8ffe Add static_assert that flag in STORE_FLAG/PARSE_FLAG is bool. 2022-03-01 21:39:24 +03:00
levlam
68e1e7c0e8 Don't try to reload yet unreceived messages with unread reactions. 2022-03-01 20:50:28 +03:00
levlam
1f300c50e0 DownloadManager fixes. 2022-02-28 18:25:07 +03:00
levlam
3e4128fc1d Add triggers for file removal from Downloads and search text changes. 2022-02-28 02:43:53 +03:00
levlam
a3cef00551 DownloadManager fixes and improvements. 2022-02-27 18:23:06 +03:00
levlam
4524ba0380 Add FileReferenceManager::get_file_info. 2022-02-26 21:52:14 +03:00
levlam
21a71e6441 Minor improvements. 2022-02-25 16:18:23 +03:00
Arseny Smirnov
97b2d3edd2 Td: proxy queries to DownloadManager 2022-02-25 13:11:30 +01:00
Arseny Smirnov
a59f262b26 AddFileToDownloads method 2022-02-23 20:56:03 +01:00
levlam
7af61c03af Fix get_channel_difference_if_needed for searchCallMessages. 2022-02-22 22:54:00 +03:00
levlam
e618758302 Add message sender to get_message_text source. 2022-02-17 15:48:39 +03:00
levlam
24d2505f5b Improve pts extraction from updates. 2022-02-16 21:18:36 +03:00
levlam
0646eb3f2e Combine reload_message_reactions queries. 2022-02-16 17:09:26 +03:00
levlam
ddf1bdc5c4 Simplify parse_message and on_get_message_from_database. 2022-02-16 01:39:20 +03:00
levlam
644971c314 Always save and update available_reactions_generation. 2022-02-15 23:25:00 +03:00
levlam
b4d5d00f1e Add available_reactions_generation and increase it each time reactions are shown or hidden in the chat. 2022-02-15 17:11:29 +03:00
levlam
ec4069b96a Sync reactions after getMessageAddedReactions if needed. 2022-02-14 11:34:12 +03:00
levlam
0d79671f15 Add MessagesManager::update_message_reactions. 2022-02-12 14:15:14 +03:00
levlam
3d8e5e00e4 Allow arbitrary reaction order in setChatAvailableReactions. 2022-02-10 20:35:42 +03:00
levlam
d5d4f4acf7 Fix remaining FlatHashMap usages. 2022-02-10 18:03:03 +03:00
levlam
c88955a8b7 Load unknown messages to process updateMessageReaction. 2022-02-08 18:48:09 +03:00
levlam
367a0101d2 Send updateChatUnreadReactionCount if can't sent updateMessageUnreadReactions. 2022-02-08 14:56:25 +03:00
levlam
bcc2adeb47 Fix includes and formatting. 2022-02-08 00:04:34 +03:00
Arseny Smirnov
86bceb2972 td: replace most of std::unordered_map usages to td::FlatHashMap 2022-02-07 21:21:31 +01:00
levlam
77060757eb Improve ordering of all message send requests. 2022-02-06 00:56:19 +03:00
levlam
b845766bd1 Add class ChainId. 2022-02-05 23:28:43 +03:00
levlam
17fb8ff6fc Replace SendSecretMessageActor with a function. 2022-02-04 16:25:37 +03:00
levlam
6e82e51243 Remove all NetActorOnce usages. 2022-02-04 00:46:10 +03:00
levlam
649f2b85f5 Rename chains to chain_ids in NetQuery. 2022-02-03 22:32:47 +03:00
levlam
8b92e8f978 Optimize checked insert to std::map. 2022-02-03 16:24:09 +03:00
levlam
877b5fce00 Allow to set again the same big reaction. 2022-02-03 13:47:18 +03:00