Commit Graph

6057 Commits

Author SHA1 Message Date
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
levlam
1995cbe6bc Simplify getSupportUser implementation. 2022-05-14 18:29:34 +03:00
levlam
941206495a Reload data once an hour. 2022-05-13 13:56:18 +03:00
levlam
de5f047dba Remove all emoji modifiers, including modifiers in the middle. 2022-05-12 18:02:27 +03:00
levlam
f1f6e61cd1 Reload all data when going online. 2022-05-12 16:40:53 +03:00
levlam
6790c309ac Move data reloading to UpdatesManager. 2022-05-12 16:34:13 +03:00
levlam
6f8b513597 Improve log message. 2022-05-12 15:18:07 +03:00
levlam
c0eb211476 Locally fix until_date before sending it to the server. 2022-05-12 14:38:45 +03:00
levlam
f9f309d334 Simplify SecretInputMedia creation. 2022-05-11 01:53:18 +03:00
levlam
35a0a7c383 Ignore empty next_offset in group calls with new participants added to the end of the list. 2022-05-10 21:48:06 +03:00
levlam
f972b3ad56 Add separate function for server group call participant order calculation. 2022-05-10 21:37:10 +03:00
levlam
c44c0f3fd3 Show unmuted group call participants first. 2022-05-10 21:26:58 +03:00
levlam
661c75fa42 Log number of group call updates to be processed. 2022-05-10 21:02:03 +03:00
levlam
71d5dd526e Separately register scheduled and local polls. 2022-05-09 01:58:17 +03:00
levlam
77019caf61 Unload unused for some time polls. 2022-05-09 01:46:46 +03:00
levlam
3d796860d2 Use server-side forward as copy. 2022-05-08 23:54:04 +03:00
levlam
995b06b317 Drop ChatFull/ChannelFull photo after updating chat/channel photo. 2022-05-06 12:41:55 +03:00
levlam
0a91c2b097 Remove unused argument. 2022-05-05 23:07:42 +03:00
levlam
ab3a8282d4 Add warning when receive inconsistent photos in chatPhoto and chatPhotoInfo. 2022-05-04 20:08:32 +03:00
levlam
bf05cf1680 Update user photo from user full photo. 2022-05-04 20:02:35 +03:00
levlam
1191f13f91 Fix compilation error. 2022-05-04 17:17:40 +03:00
levlam
fc6b1c0ea8 Enable back log out. 2022-05-03 16:31:58 +03:00
Arseny Smirnov
852fe4f24b Session: force ack when we received unknown answer 2022-05-03 17:17:36 +04:00
levlam
fb1efdbba8 Return back notification.is_silent. 2022-05-03 16:09:40 +03:00
levlam
4b7dab920e Don't update last_success_timestamp_ in Session::on_update with PFS. 2022-05-03 16:06:14 +03:00
Arseny Smirnov
0450b05757 Session: improve key immunity condition 2022-05-03 16:33:09 +04:00
levlam
0d0b641ac6 Log out only if there is main auth key, but it isn't logged in. 2022-05-02 21:41:04 +03:00
levlam
d95b20b631 Try not to override "auth" option. 2022-05-02 21:20:39 +03:00
levlam
de15cdb1f0 Log out if key check has failed. 2022-05-02 21:17:06 +03:00