Commit Graph

5431 Commits

Author SHA1 Message Date
levlam
8139e0d560 Update forward_count and thread reply_info only after updateNewMessage is sent. 2020-12-28 16:58:50 +03:00
levlam
6af4338f8b Add MessagesManager::update_forward_count. 2020-12-28 16:21:39 +03:00
levlam
5f02a34c34 Don't hide reply info for yet unsent messages. 2020-12-28 15:19:56 +03:00
levlam
2c8cfc561c Add is_speaking flag for recent speakers. 2020-12-28 14:19:29 +03:00
levlam
1f9d173afb Automatically check whether group call is still joined. 2020-12-28 00:30:27 +03:00
levlam
1d155a8492 tg_cli: add get_chat_report_reason. 2020-12-26 21:53:39 +03:00
levlam
48f5169101 tg_cli: add get_supergroup_members_filter. 2020-12-26 21:45:19 +03:00
levlam
f56ea08096 tg_cli: add get_user_privacy_setting_rules. 2020-12-26 21:32:21 +03:00
levlam
d23e6ad352 tg_cli: combine Search* methods. 2020-12-26 21:12:09 +03:00
levlam
4de797e4bd tg_cli: use rand_bool everywhere. 2020-12-26 21:01:57 +03:00
levlam
6654464360 tg_cli: use get_args if possible. 2020-12-26 20:58:30 +03:00
levlam
168becf215 tg_cli: simplify SearchQuery parsing. 2020-12-26 20:47:51 +03:00
levlam
2097d88006 tg_cli: use get_args to read integer parameters. 2020-12-26 20:26:19 +03:00
levlam
3c5c23aeec Improve error message. 2020-12-26 20:25:59 +03:00
levlam
e53ffdb101 tg_cli: use get_args to read bool parameters. 2020-12-26 19:59:45 +03:00
levlam
48a47618ca tg_cli: add get_args. 2020-12-26 19:40:46 +03:00
levlam
77112f53d7 tg_cli: add as_limit. 2020-12-26 01:25:00 +03:00
levlam
30d912bd4b Set is_pinned flag for last_pinned_message_id. 2020-12-26 01:05:24 +03:00
levlam
f4ec6e6cfc tg_cli: add get_search_query. 2020-12-26 00:43:38 +03:00
levlam
c8668f224c Update ChannelFull.participant_count when channel.participant_count changes. 2020-12-25 18:06:54 +03:00
levlam
ce75097932 Increase ChannelFull.participant_count instead of decreasing administrator_count to guarantee that channel has no administrators more than participants. 2020-12-25 17:35:41 +03:00
levlam
9ca42ec8da Check message pts before merging files. 2020-12-25 16:12:09 +03:00
levlam
b70eb33158 Save pts of the last processed message edit. 2020-12-25 03:31:12 +03:00
levlam
ebc4e57da7 Minor improvements of process_update. 2020-12-25 03:19:10 +03:00
levlam
a8377db05d Simplify handling of updateNewChannelMessage and updateEditChannelMessage. 2020-12-25 02:56:22 +03:00
levlam
b867a597e8 Simplify add_pending_channel_update calls. 2020-12-25 02:37:14 +03:00
levlam
ba9837f55e tg_cli: combine emp and empttl. 2020-12-25 01:41:56 +03:00
levlam
d191bc49b6 Save updates with pts_count == 0 to postpone setting their promises. 2020-12-25 01:32:31 +03:00
levlam
4a28b98022 Pass promise to add_pending_channel_update. 2020-12-25 00:20:21 +03:00
levlam
3dbc996acc Postpone pts updates, which can't be applied right now. 2020-12-24 23:32:32 +03:00
levlam
4ea10b3de6 Pass promise to MessagesManager::add_pending_update. 2020-12-24 21:56:15 +03:00
levlam
c1a1fc881c Fix BufferedStdinImpl destruction. 2020-12-24 20:49:08 +03:00
levlam
47e413e0b8 Fix BufferedStdinImpl reference counter. 2020-12-24 19:17:06 +03:00
levlam
b582eb346a Undo move_as_native_fd changes. 2020-12-24 18:43:26 +03:00
levlam
1b92e2d57a Return back ScopeExit usage. 2020-12-24 17:16:56 +03:00
levlam
c1a16acd53 Don't check that Stdin/Stdout/Stderr are unlocked on exit. 2020-12-24 17:12:50 +03:00
levlam
0787c642ce Fix dlog_print usage on Tizen. 2020-12-23 19:38:58 +03:00
levlam
c80b566c49 Fix tdweb build. 2020-12-23 19:25:01 +03:00
levlam
d628f9fa02 FromApp method fixes. 2020-12-23 18:08:34 +03:00
Fela Ameghino
7c14b3b881
Use *FromApp methods when available (#1303) 2020-12-23 11:25:27 +03:00
Egor Pugin
28ce6974ce
Remove extra include dir part. (#1336) 2020-12-23 10:41:56 +03:00
levlam
887c2dfdf7 Properly set promise when ignore pending updates. 2020-12-23 02:06:45 +03:00
levlam
b9d1530c78 Store all promises for pending qts updates. 2020-12-23 01:58:56 +03:00
levlam
6d6d1b20b6 Reimplement RSA for OpenSSL 3.0.0. 2020-12-22 23:29:10 +03:00
levlam
03bb56ae96 Add RSA test. 2020-12-22 22:28:04 +03:00
levlam
7d1e5bca55 Reimplement HMAC for OpenSSL 3.0.0. 2020-12-22 19:32:57 +03:00
levlam
9985f6db6a Add HMAC tests. 2020-12-22 17:54:35 +03:00
levlam
abdc727a0f Improve OpenSSL 3.0 compatibility. 2020-12-22 17:46:56 +03:00
levlam
3589676550 Minor fixes. 2020-12-22 15:51:57 +03:00
levlam
b89cb3fbd6 Fix misprint. 2020-12-22 02:09:08 +03:00