Commit Graph

6458 Commits

Author SHA1 Message Date
levlam
4bd6bd377b Fix empty chatAdministrators object creation. 2022-06-02 16:34:05 +03:00
levlam
3ae2ec38c5 Always reload scope notification settings. 2022-05-31 17:18:27 +03:00
levlam
72f3288bec Add source to get_history_from_the_end_impl. 2022-05-31 16:33:37 +03:00
levlam
ab6f2bd52f Remove logging of owner_dialog_id. 2022-05-31 16:19:08 +03:00
levlam
cd458ce522 Improve log message. 2022-05-31 16:10:11 +03:00
levlam
dc8d94383a Call get_message_id once in on_get_history. 2022-05-31 15:56:38 +03:00
levlam
bcea804864 Keep chat position if failed to add last message to it. 2022-05-31 15:39:41 +03:00
levlam
1c2ff4fd5a Add note that log messages aren't guaranteed to be encoded in UTF-8. 2022-05-31 15:16:34 +03:00
levlam
b4a643cffd Simplify file size error creation. 2022-05-31 15:12:40 +03:00
levlam
a282cce5d4 Add and use utf8_encode. 2022-05-31 15:08:16 +03:00
levlam
bf0caca138 Simplify LinkManager::check_link usage. 2022-05-31 01:41:01 +03:00
levlam
de34ffb530 Always use error code 400 in SecureValue processing errors. 2022-05-30 22:59:59 +03:00
levlam
63a4027ab2 Add source to on_get_poll. 2022-05-29 19:31:36 +03:00
levlam
5b089ee762 Log original decrypted message version without local replacements. 2022-05-28 23:44:41 +03:00
levlam
d2c6e7726f Avoid fixing last_new_message_id to yet_unsent message in secret chats. 2022-05-26 18:51:22 +03:00
levlam
c0890a5f8a Improve error message. 2022-05-26 18:35:16 +03:00
levlam
c3f9904052 Don't send typings about copied messages. 2022-05-26 17:44:14 +03:00
levlam
43e51f8f65 Explicitly process reaction notifications as unsupported. 2022-05-26 17:23:52 +03:00
levlam
a90dd653af Avoid logging to error if invalid dimensions were provided by app. 2022-05-26 17:13:31 +03:00
levlam
f8951e6154 Improve log message. 2022-05-26 17:01:47 +03:00
levlam
a136ee5caa Locally search for short usernames, beginning with @. 2022-05-26 16:53:32 +03:00
levlam
0c839c8169 Ignore QUERY_TOO_SHORT errors. 2022-05-26 16:38:37 +03:00
levlam
ccbb9183c8 Don't try to load administrators in left basic groups. 2022-05-26 16:02:14 +03:00
levlam
38b56792cd Reload group call if number of members became negative. 2022-05-26 15:32:15 +03:00
levlam
980c4f9f71 Silence expected warning. 2022-05-26 15:21:56 +03:00
levlam
7962df5e35 Fix poll unload. 2022-05-26 14:44:30 +03:00
levlam
c5dfa59782 Fix MessagesManager::can_delete_dialog. 2022-05-24 17:41:32 +03:00
levlam
80f3c88bdb Move get_invite_text and save_app_log to Application.cpp. 2022-05-24 14:56:02 +03:00
levlam
d04552045d Add warnings about long application of postponed updates. 2022-05-22 22:09:46 +03:00
levlam
15a11d7053 Move expected logging about secret chat updates to INFO. 2022-05-21 23:07:28 +03:00
levlam
c2a580bbfb Don't try to reload data without authorization. 2022-05-20 16:59:14 +03:00
levlam
9c9a74c52d Workaround GCC 7.4.0 false warning. 2022-05-19 19:50:02 +03:00
levlam
16959e33e4 Use WaitFreeHashMap for message_id_to_dialog_id_. 2022-05-19 19:34:48 +03:00
levlam
18cd0dd95e Workaround GCC 12 false positive warnings. 2022-05-18 16:59:15 +03:00
levlam
1616513c4c Add and use MessagesManager::is_deleted_message. 2022-05-18 12:16:32 +03:00
levlam
e65c0827a4 Drop dangling replies to yet unsent messages. 2022-05-17 16:27:46 +03:00
levlam
0bf2aaf4f2 Resolve identifiers of being added secret messages by their random_id. 2022-05-17 16:19:39 +03:00
levlam
19407656b5 Add more logging and don't set unused message flags. 2022-05-17 15:30:58 +03:00
levlam
f53f750b39 Change replied message ID from yet unsent to persistent after the message is sent. 2022-05-17 15:06:40 +03:00
levlam
bf37753056 Keep reply_to_message_id for forwards to secret chats. 2022-05-16 21:10:18 +03:00
levlam
8f42c97252 Fix CHECK. 2022-05-16 20:00:59 +03:00
levlam
26ceefb2d4 Keep reply_to_message_id for yet unsent messages between restarts. 2022-05-16 19:47:06 +03:00
levlam
190117c839 Add local reply_to_message_id to forwarded by the server messages. 2022-05-16 18:11:49 +03:00
levlam
b6c7da172c Log received messages. 2022-05-15 18:37:55 +03:00
levlam
883f6d2286 Copy can_be_deleted flag to Channel to avoid ChannelFull loading. 2022-05-15 12:48:22 +03:00
levlam
5a1a64764b Add check that there are no two new chats added simultaneously. 2022-05-15 10:53:06 +03:00
levlam
70050704d2 Remove unimplemented UploadCallback::on_progress. 2022-05-15 01:13:07 +03:00
levlam
b42c74f561 Minor OptionManager::set_option improvements. 2022-05-14 20:09:08 +03:00
levlam
514ffd7e77 Minor ConfigShared improvements. 2022-05-14 19:59:11 +03:00
levlam
c17520fdbc Implement getSupportUser with request promise instead of RequestActor. 2022-05-14 18:54:21 +03:00