Commit Graph

8407 Commits

Author SHA1 Message Date
levlam
04525f6f6b Completely ignore global drafts in forum chats. 2023-05-31 17:54:31 +03:00
levlam
e599d16fc2 Make DraftMessage fields private and improve their names. 2023-05-31 17:46:06 +03:00
levlam
0b56f92190 Add methods to DraftMessage class. 2023-05-31 17:35:56 +03:00
levlam
978eb97c72 Improve get_draft_message. 2023-05-31 17:19:31 +03:00
levlam
ad5655d359 Add and use add_draft_message_dependencies. 2023-05-31 16:34:12 +03:00
levlam
33cbb2f438 Move ClearAllDraftsQuery to DraftMessage.cpp. 2023-05-31 16:23:23 +03:00
levlam
394ce38278 Move GetAllDraftsQuery to DraftMessage.cpp. 2023-05-31 16:17:20 +03:00
levlam
1aeaaaa733 Move SaveDraftMessageQuery to DraftMessage.cpp. 2023-05-31 15:57:30 +03:00
levlam
ec4d9836ee Add and use need_update_draft_message. 2023-05-31 15:29:37 +03:00
levlam
0ebc404ec5 Move file_loader logging to DEBUG by default. 2023-05-31 14:44:17 +03:00
levlam
1ff0e66eb0 Drop ready_size when delete partial remote location. 2023-05-30 12:29:12 +03:00
levlam
716481ca73 Don't allow message date change for server messages after sending. 2023-05-28 23:07:39 +03:00
levlam
8cc992e15e Add MessagesManager::on_get_messages_from_database. 2023-05-28 22:44:27 +03:00
levlam
0907c4fda5 Improve action order in on_get_history_from_database. 2023-05-28 11:15:15 +03:00
levlam
b64f8260f9 Remove manual load_messages call if receive no new messages from database. 2023-05-28 01:17:32 +03:00
levlam
1cf48ab89b Improve log messages. 2023-05-27 23:02:47 +03:00
levlam
b0ff4376e3 tg_cli: remove legacy api_id/api_hash options. 2023-05-27 21:39:04 +03:00
levlam
e1ecdf8399 Check wait_size and quick_ack first. 2023-05-26 13:24:55 +03:00
levlam
5ed34993be Save top_thread_message_id in RequestWebViewQuery. 2023-05-25 17:31:34 +03:00
levlam
a8be92146d Add class DocumentsManager::Subtype. 2023-05-25 13:57:12 +03:00
levlam
54b34e9180 Add more checks for scheduled messages. 2023-05-25 12:13:47 +03:00
levlam
dd7fe47db8 Add FileManager::copy_file_id. 2023-05-24 15:28:40 +03:00
levlam
526b602b61 Fix variable use after move. 2023-05-24 14:53:10 +03:00
levlam
0150094c0f Get chat history if receive a chat in chat list without last message. 2023-05-24 12:53:52 +03:00
levlam
7385ca726b Allow messageEmpty in response to messages.getDialogs. 2023-05-24 01:46:00 +03:00
levlam
54e967861c Fail sending of messages from yet_unsent_media_queues_ on restart. 2023-05-23 17:01:51 +03:00
levlam
d01f1ab20a Limit the number of concurrent getChannelDifference requests. 2023-05-23 14:57:04 +03:00
levlam
5a59c933fb Add missing semicolons after CHECK. 2023-05-22 19:31:58 +03:00
levlam
1aa1185185 Fix misprint. 2023-05-22 19:21:42 +03:00
levlam
7bc891aa0b Repeat channels.getDifference if expected PTS/message_id wasn't reached. 2023-05-22 19:19:36 +03:00
levlam
398fbeadf1 Add MessagesManager::schedule_get_channel_difference function. 2023-05-22 18:23:40 +03:00
levlam
89c47026e0 Fix compilation error with old compilers. 2023-05-22 16:00:14 +03:00
levlam
9756d174ee Clear contains_mention/contains_unread_mention message flags for bots. 2023-05-22 15:52:51 +03:00
levlam
fc82657626 Add create_photo function. 2023-05-22 15:35:25 +03:00
levlam
3d4b4ac014 Simplify inputMessageContent processing. 2023-05-21 23:28:34 +03:00
levlam
c70ef59cde Add get_input_thumbnail_photo_size. 2023-05-21 23:05:28 +03:00
levlam
c18818013a Add get_input_photo_size function. 2023-05-21 16:35:33 +03:00
levlam
f831357538 Make some constructors constexpr. 2023-05-21 13:21:49 +03:00
levlam
d65541d45a Use get_message_file_ids if possible. 2023-05-20 00:49:16 +03:00
levlam
3861b927ba Remove outdated comment superseded by static_assert. 2023-05-19 14:17:44 +03:00
levlam
45dfc6e51b Use FlatHashSet to store unallowed boundaries. 2023-05-19 14:03:22 +03:00
levlam
d510bc8435 Use FlatHashSet to store common TLDs. 2023-05-19 14:00:49 +03:00
levlam
1da3955271 Move Photo merging to merge_photos function. 2023-05-18 17:03:56 +03:00
levlam
2d60dadfe6 Improve important comment visibility. 2023-05-18 15:44:00 +03:00
AYMENJD
b844da31d4 Fix misprint. 2023-05-18 15:00:38 +03:00
levlam
348a209ab7 Fix includes. 2023-05-18 14:33:00 +03:00
levlam
fe4b1a16ef Fix warning. 2023-05-18 02:11:44 +03:00
levlam
cbb10e0f3d Remove 4-letter usernames from the list of short usernames. 2023-05-18 02:05:58 +03:00
levlam
f3a1407f8f Simplify constant FlatHashSet initialization. 2023-05-18 02:03:39 +03:00
levlam
20b312b144 Don't replace "Request aborted" errors for files. 2023-05-17 13:52:47 +03:00