Commit Graph

430 Commits

Author SHA1 Message Date
levlam
aa0b217a18 Fix call to set_pts. 2023-07-13 19:17:16 +03:00
levlam
6ece751ccd Fix warning. 2023-07-13 18:15:06 +03:00
levlam
1669f8d4b8 Init sessions if there are multiple sessions. 2023-07-12 21:08:01 +03:00
levlam
07ece1faea Improve PTS restore even more. 2023-07-11 16:20:35 +03:00
levlam
6b376a71e8 Improve updatePtsChanged handling by using getDifference instead of getState, which allows to get all pending updates. 2023-07-11 16:10:56 +03:00
levlam
00a6271edb Restore PTS after overflow. 2023-07-11 15:50:50 +03:00
levlam
6217e8c8f2 Don't drop state on updatePtsChanged. 2023-07-11 15:23:35 +03:00
levlam
288666c1fe Load all read stories from time to time. 2023-07-07 17:41:30 +03:00
levlam
25c73f32f5 Reload active story lists by timeout. 2023-07-06 18:22:20 +03:00
levlam
312006a207 Various fixes. 2023-07-01 19:54:22 +03:00
levlam
7a7d62fd44 Fix misprint. 2023-07-01 19:13:17 +03:00
levlam
2bf47d0809 Minor fixes. 2023-07-01 16:22:01 +03:00
levlam
bcf9ff7d43 Explicitly include telegram_api.h in cpp files. 2023-07-01 14:53:04 +03:00
levlam
3a3ae9eabf Explicitly pass Td to Location constructor and don't register locations for bots. 2023-06-28 19:01:00 +03:00
levlam
c3c8af9104 Correctly initialize boolean fields in messages from short updates. 2023-06-23 16:49:26 +03:00
levlam
56df91b265 Support updateReadStories. 2023-06-15 13:16:31 +03:00
levlam
2467633a74 Support replies to stories in UpdatesManager::is_acceptable_message_reply_header. 2023-06-05 19:29:38 +03:00
levlam
eec9826dec Process telegram_api::updateStory updates. 2023-06-01 16:27:00 +03:00
levlam
a05940b705 Make PrivacyManager an ordinary manager. 2023-05-08 15:23:57 +03:00
levlam
65e01ad063 Ignore errors when processing telegram_api::PrivacyRule. 2023-05-08 14:54:57 +03:00
levlam
030e440757 Update layer to 160. 2023-05-01 21:07:01 +03:00
levlam
cdb3df8966 Log PTS and QTS gap statistics for each million events. 2023-05-09 12:53:48 +03:00
levlam
da813f3ee9 Support updates.difference in on_get_pts_update. 2023-04-27 22:47:45 +03:00
levlam
797156bf11 Fast PTS gap repair. 2023-04-27 22:01:10 +03:00
levlam
b34955e7a9 Use separate request to confirm PTS and QTS. 2023-04-27 20:21:30 +03:00
levlam
61e8e863d9 Update comment about recent voters. 2023-04-27 14:34:52 +03:00
levlam
38efb6d673 Support MessageSenders as poll voters. 2023-04-25 16:41:04 +03:00
levlam
48d72677d3 Update layer to 159. 2023-04-25 14:27:58 +03:00
levlam
432ee4c2c4 Remove now redundant parameters have_previous/have_next from add_message_to_dialog. 2023-05-11 20:27:00 +03:00
levlam
5ad95e78bf Improve variable names. 2023-04-25 16:51:08 +03:00
levlam
a21b49ddfd Avoid rare PTS getDifference after logging in. 2023-04-12 12:06:28 +03:00
levlam
e50e3e0b3a Add updateChatMember.via_chat_filter_invite_link. 2023-04-02 23:45:27 +03:00
levlam
7085bc4d8f Pass promise to on_update_dialog_filters. 2023-04-02 11:53:25 +03:00
levlam
f4daa4b61a Move dialog filter list to DialogFilterManager. 2023-03-27 17:44:13 +03:00
levlam
a45d2de881 Update layer to 158. 2023-03-21 14:11:43 +03:00
levlam
23c8ef2f63 Return error 404 from addApplicationChangelog if nothing was added. 2023-03-23 16:53:11 +03:00
levlam
367d3eaa2b Move ignore_background_updates() to Td. 2023-03-13 21:13:59 +03:00
levlam
f1311610e5 Remove unneeded TdParameters.h includes. 2023-03-13 20:10:18 +03:00
levlam
835ee52491 Make TdParameters private in Global. 2023-03-13 19:47:38 +03:00
levlam
a49e63985d Send updateAddChatMembersPrivacyForbidden after successful request response. 2023-03-06 21:42:06 +03:00
levlam
23341647ba Support null updates in get_update_ids. 2023-03-06 21:01:00 +03:00
levlam
e7242b1188 Fix includes. 2023-03-06 20:36:56 +03:00
levlam
97248f1432 Send td_api::updateAddChatMembersPrivacyForbidden after failed adding of a user to a basic group. 2023-03-03 15:43:14 +03:00
levlam
b45d56d116 Add updateAddChatMembersPrivacyForbidden. 2023-03-03 14:42:30 +03:00
levlam
dff135fa6c Allow truncated links in updates and event log. 2023-03-03 04:23:46 +03:00
levlam
f6615189af Update layer to 154. 2023-02-07 14:01:45 +03:00
levlam
22fdc0258b Use "receive"/"have"/"loaded" instead of "got" and other log message improvements. 2023-02-26 14:22:31 +03:00
levlam
1e6c3ef93d Don't try to reload data mutiple times without network. 2023-02-06 20:31:17 +03:00
levlam
d4833b7844 Reload autosave settings periodically. 2023-02-06 20:10:27 +03:00
levlam
2260944afe Save autosave settings to database. 2023-02-06 19:53:21 +03:00