Commit Graph

7886 Commits

Author SHA1 Message Date
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
e4bff687cf Add td::remove_emoji_selectors test. 2022-05-12 19:18:14 +03:00
levlam
805e4d4a25 Add get_fitzpatrick_modifier test. 2022-05-12 19:11:17 +03:00
levlam
e6738efa3f Add test for remove_emoji_modifiers. 2022-05-12 19:04:37 +03:00
levlam
6377a15d02 Move is_emoji test to separate file. 2022-05-12 18:45:25 +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
bb0908504b Fix clean_filename test. 2022-05-12 13:10:19 +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
levlam
746816e7d7 Add Global::log_out helper. 2022-05-02 20:59:07 +03:00
levlam
6b838b706b Increase bound for unique_ptr-based HashTable node usage to improve performance. 2022-05-02 20:46:20 +03:00
levlam
d6569d43fd Fix DcAuthManager::check_authorization_is_ok. 2022-05-02 20:44:37 +03:00
levlam
134b7e7d01 Remove unused function. 2022-05-02 20:35:37 +03:00
Arseny Smirnov
449974d425 Double check authorization during start up 2022-05-02 19:34:01 +04:00
levlam
3886cc9c13 Minor SessionType improvements. 2022-05-02 13:54:22 +03:00
alyral
76d687e62d
Add session type field (#1950) 2022-05-02 13:46:16 +03:00
levlam
8b5042f26d Nore that for Node.js >= 17.0 OpenSSL 3.0 is required. 2022-05-02 13:34:50 +03:00
levlam
4652292037 Use count instead of find if appropriate. 2022-05-01 23:03:06 +03:00
levlam
00aa9f54bd Use ContactsManager::get_dialog_id in on_get_common_dialogs. 2022-04-30 21:22:27 +03:00