Commit Graph

244 Commits

Author SHA1 Message Date
levlam
b1da98faeb Fix possible integer overflow. 2021-03-03 15:10:00 +03:00
levlam
3b3801abbe Update layer 124. 2021-02-25 21:09:13 +03:00
levlam
c733f8ed34 Minor improvements. 2021-02-25 15:56:26 +03:00
levlam
2e943a6c85 Fix misprint. 2021-02-19 16:37:44 +03:00
levlam
60e45f6457 Fix processing of qts updates. 2021-02-19 14:43:16 +03:00
levlam
ce80a2f12f Improve qts gap debug. 2021-02-19 14:12:50 +03:00
levlam
62a4c0c58d Add updateChatMember. 2021-02-19 13:57:46 +03:00
levlam
fd190bc9bd Process updateChatParticipant and updateBotStopped. 2021-02-19 02:16:50 +03:00
levlam
f92339de85 Support telegram_api::messageActionSetMessagesTTL. 2021-02-16 15:15:45 +03:00
levlam
cc50f3b143 Support receiving message TTL setting for all chat types. 2021-02-09 17:35:48 +03:00
levlam
642a9a9efb Update layer to 124. 2021-02-02 02:00:28 +03:00
levlam
c6466caee2 Add logging on long pts gap filling. 2021-02-01 13:06:38 +03:00
levlam
9e37c85af3 Minor improvements. 2021-01-27 02:57:59 +03:00
levlam
cc8c0cbe64 Support delete_history flag in messages.discardEncryption. 2021-01-18 15:04:31 +03:00
levlam
9a575cdb56 Forcely ignore updateChat received in getDifference. 2021-01-20 15:14:16 +03:00
levlam
e72c129f9c Ignore getDifference errors while closing. 2021-01-18 15:54:29 +03:00
levlam
35c4562fc5 Make on_server_pong private. 2021-01-16 02:59:03 +03:00
levlam
7a94cac200 Make on_get_updates_state private. 2021-01-16 02:55:47 +03:00
levlam
7c0af14d09 Make on_get_difference private. 2021-01-16 02:44:58 +03:00
levlam
004876dcf0 Make get_pts/get_qts/get_date private. 2021-01-16 01:42:06 +03:00
levlam
ef920f297d Move handling of pending pts updates to UpdatesManager. 2021-01-16 01:17:35 +03:00
levlam
3c1341731c Move check_pts_update to UpdatesManager. 2021-01-15 23:39:34 +03:00
levlam
67403c586b Remove force_apply parameter from on_update. 2021-01-15 19:32:16 +03:00
levlam
24664db3cb Forcely process qts updates in process_updates. 2021-01-15 19:09:00 +03:00
levlam
76fac90693 Simplify telegram_api::updateMessageID processing. 2021-01-15 18:52:41 +03:00
levlam
2eacc1f974 Forcely process pts updates in process_updates. 2021-01-15 18:45:26 +03:00
levlam
36b4c55927 Remove force_apply from add_pending_update. 2021-01-12 01:52:10 +03:00
levlam
840391b95c Add is_pts_update/is_qts_update. 2021-01-11 23:58:03 +03:00
levlam
cdbed1844a Add updateFolderPeers to pts updates. 2021-01-11 23:14:41 +03:00
levlam
c5549b7346 Improve log messages. 2021-01-08 16:05:16 +03:00
levlam
71ac1f67bf Force getDifference if receive a lot of qts updates. 2021-01-05 16:36:49 +03:00
levlam
970f65604a Switch back from getDifference to updates handling if there are too much of them. 2021-01-05 16:06:51 +03:00
levlam
89fa0f6446 Add get_update_qts/get_update_pts. 2021-01-05 12:41:35 +03:00
levlam
82f0386e73 Move some functions from misc.h to algorithm.h. 2021-01-01 16:01:03 +03:00
levlam
52c1da0a70 Update copyright year. 2021-01-01 15:57:46 +03:00
levlam
9ca42ec8da Check message pts before merging files. 2020-12-25 16:12:09 +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
4a28b98022 Pass promise to add_pending_channel_update. 2020-12-25 00:20:21 +03:00
levlam
4ea10b3de6 Pass promise to MessagesManager::add_pending_update. 2020-12-24 21:56:15 +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
656a641290 Fix sending response to setPollAnser. 2020-12-22 01:51:20 +03:00
levlam
7d73126506 Add success promise to on_get_updates. 2020-12-21 22:06:52 +03:00
levlam
e89d353b68 Add groupCall.need_rejoin flag. 2020-12-17 17:49:15 +03:00
levlam
96acefc6c6 Update layer 122. 2020-12-14 16:52:25 +03:00
levlam
6fdf68bad4 Store DialogId in information about group call. 2020-12-13 14:52:07 +03:00
levlam
76950e710f Support updateGroupCallParticipants updates. 2020-12-11 18:44:03 +03:00
levlam
6a38d219f0 Update layer 122. Add updateNewInlineQuery.chat_type (can be sent by the server in the distant future). 2020-12-07 23:08:18 +03:00
levlam
eb9abbb9ab Save voice chat channel_id. 2020-12-04 12:40:51 +03:00
levlam
34e05375c1 Add GroupCallId class. 2020-12-03 19:52:50 +03:00
levlam
7f9681313a Update layer 122. 2020-11-29 15:41:03 +03:00
levlam
1eca39c4ee Add toggleGroupCallMuteNewMembers method. 2020-11-27 01:58:36 +03:00
levlam
e1271c7fa5 Add createChatGroupCall. 2020-11-26 10:56:13 +03:00
levlam
cc47f9b63f Support updateGroupCall. 2020-11-25 17:04:32 +03:00
levlam
59e0f03b5f Update UpdatesManager::is_acceptable_message. 2020-11-24 01:36:20 +03:00
levlam
ccb0a4f63c Update layer to 122. 2020-11-23 18:48:55 +03:00
levlam
778adce53d Add debug logging.
GitOrigin-RevId: 08ae2a25ae086a2211658239a532e1e19d996a4f
2020-10-31 16:33:06 +03:00
levlam
7010c7c6ea Fix dropping pending updates after receiving empty difference.
GitOrigin-RevId: b8a7a2298191123b0e5be818ebae52c52998eab0
2020-10-31 12:01:13 +03:00
levlam
01447bb3f3 Process Message.is_pinned updates.
GitOrigin-RevId: 5dd3c0545a295c9faf408a3dbf8fb2767e290e34
2020-10-20 15:08:36 +03:00
levlam
44b9ce89b8 Update layer to 120.
GitOrigin-RevId: 6318c68a9df151edc3c198473aeaf895d89fc594
2020-10-20 02:48:19 +03:00
levlam
ef09c6c5a9 Add message.is_pinned flag.
GitOrigin-RevId: 0449aaa0d12f29d722fbfcf4bad6d85f2212d819
2020-10-20 02:08:56 +03:00
levlam
de1e5e0bd4 Add new message content type MessageLiveLocationApproached.
GitOrigin-RevId: 6bf5ac6b3320d0b6da9c27bf5258105ccd958396
2020-10-19 20:44:09 +03:00
levlam
d968fd0bed Implement new chat action rules.
GitOrigin-RevId: 12214755c86adfee0a7b3ec5f6e39024364cdb99
2020-10-26 15:25:34 +03:00
levlam
f50e017c1f Add seq overflow handling.
GitOrigin-RevId: 082d5989e061b8408f88dd92a3bf1665d3db6d79
2020-10-04 13:01:53 +03:00
levlam
771ace5c8d Minor fixes.
GitOrigin-RevId: 7cc15963615dd50f1be3aa37c336214b28f93bb4
2020-10-02 02:17:58 +03:00
levlam
8c4a9e7553 Add DialogAction::get_typing_action().
GitOrigin-RevId: a2abad1076b6a54135ee945f8f75a0f8b2c04af7
2020-10-01 19:30:07 +03:00
levlam
711b0cfd4f Introduce DialogAction class.
GitOrigin-RevId: f94011c1b70cdc17115bfbb981c6e000110adfbf
2020-10-01 19:28:10 +03:00
levlam
3d21c09ca8 Drop pending seq/qts updates after receiving empty difference.
GitOrigin-RevId: 2e1e66568a9b565f990a68059729affbae1aa68d
2020-09-30 21:42:32 +03:00
levlam
fb2cfc1fe3 Rename top_erply_message_id to top_thread_message_id.
GitOrigin-RevId: 4642286bdc2dc10073b1ab418b274af16b35c122
2020-09-28 14:01:15 +03:00
levlam
590fc8f8bb Fix check for acceptable reply header.
GitOrigin-RevId: 9c636e96ef5e615fd434fb2e63e459eead57a5bb
2020-09-23 02:17:57 +03:00
levlam
4aa10dbcc5 Fix seq updating after all updates was processed.
GitOrigin-RevId: 11070e368d10d8378b5b30010a5ea1028d4e2fbe
2020-09-22 18:16:05 +03:00
levlam
9ecb61965d Move is_blcoked to Chat.
GitOrigin-RevId: 7d1fc672c9487feba0839b7af669323464243ffc
2020-09-20 01:54:40 +03:00
levlam
dad48976b5 Add unread status in message threads.
GitOrigin-RevId: ed0fb2fc705b9539001b365fd5aa07d762d9a382
2020-09-19 22:01:28 +03:00
levlam
5b07557f3d Support receiving typings inside a message thread.
GitOrigin-RevId: ccedc84e6066d37835e560929c69c3f2cb010dcf
2020-09-18 20:15:12 +03:00
levlam
b45ccc6d14 Update layer 119.
GitOrigin-RevId: fba8e1e0e8cf9b6fda11ab3762bd6efca5865eb8
2020-09-18 18:32:59 +03:00
levlam
7e6cb9a8e4 Handle updateReadDiscussion.
GitOrigin-RevId: 2cb783768934ee67bad98511edfc061ae6aa879b
2020-09-16 16:41:08 +03:00
levlam
f9a7917eff Simplify is_acceptable_dialog usage.
GitOrigin-RevId: 0914cd24bb8c1a2cc878692a0f157d17dab667dd
2020-09-11 17:56:17 +03:00
levlam
7df0c5084a Fix updateShortMessage handling.
GitOrigin-RevId: 35c667af5646654ed9f8495774043adb10b12faf
2020-09-11 17:51:01 +03:00
levlam
643371aa2f Check message reply header in updates.
GitOrigin-RevId: bb71f4cf73f104b6d2f9da18305007336b9397bf
2020-09-10 16:28:25 +03:00
levlam
aa6c746e8d Add MessagesManager::fix_server_reply_to_message_id.
GitOrigin-RevId: cafb49b6885fc992ff4867a254771a1fa9a6084b
2020-09-10 14:54:34 +03:00
levlam
f05b8cec61 Update layer 119. Add sender_chat_id.
GitOrigin-RevId: ac837165b7bbd57631456291503e688339e04d03
2020-09-08 22:08:10 +03:00
levlam
ed782145bf Add reply_count and recent_replier_user_ids to MessageIntercationInfo.
GitOrigin-RevId: 48bae463c091d3d29e3096ebb4c2fbbbeda38dfd
2020-08-31 13:42:27 +03:00
levlam
b90e1bbeaf Update layer to 119.
GitOrigin-RevId: fdec9a689414746baf67cc15ec279e2516c2765a
2020-08-30 22:12:43 +03:00
levlam
23b3eb4931 Update layer to 118. Support message forward count.
GitOrigin-RevId: 10f59fede8b4a86c871949fc721fedd1d615c4bf
2020-07-31 05:50:11 +03:00
levlam
4bf3b013c7 Add updateChannelParticipant processing.
GitOrigin-RevId: 5701dcbb068583266aaf00b3b4ed5c6336566e76
2020-08-03 21:54:28 +03:00
levlam
790267119d Fix applying of pending qts updates after getDifference.
GitOrigin-RevId: b8cd1cadc19c8d8be01936def2b8c98523b261dc
2020-08-03 17:37:08 +03:00
levlam
e9d3b4881e Support gaps in qts updates.
GitOrigin-RevId: afcae4aa4ac456f5b8d8b2e46b92126a606bdca9
2020-08-03 16:57:30 +03:00
levlam
3be95dd6e8 Apply telegram_api::updateEncryption before other updates.
GitOrigin-RevId: 1a03b2141630a0c432ca2bef92b457da08d2e1a5
2020-08-03 01:51:57 +03:00
levlam
c44cd3415c Move QtsManager to UpdatesManager.
GitOrigin-RevId: 792faddd71cb3f9c07a4fd915ca782bfe2606ac3
2020-08-02 22:07:22 +03:00
levlam
a297294aac Update layer to 116.
GitOrigin-RevId: 7c12605195674f0b48dbc05734e99bffb2062d0c
2020-06-24 11:45:36 +03:00
levlam
c4113c6be3 Remove SecretChatsManager::after_get_difference.
GitOrigin-RevId: 17f3a30e354e2e532ba3975c2d4b84f7d8c904d3
2020-07-03 16:18:23 +03:00
levlam
f6b4ced7bb Improve some variable names.
GitOrigin-RevId: b399b6fc1150aced96a41a75797d88e2df627415
2020-06-24 14:33:20 +03:00
levlam
f949ecbd3c Add basic support for updateDialogFilter and updateDialogFilterOrder.
GitOrigin-RevId: 59b715faad14356926593a744cf90e38bf78f38f
2020-05-15 02:14:06 +03:00
levlam
0e5b939a73 Support telegram_api::updateDialogFilters.
GitOrigin-RevId: 0a3ada4fa00079a120d358b0abaf413bbb88466d
2020-05-15 01:44:52 +03:00
levlam
3d8ff7f852 Update layer to 114.
GitOrigin-RevId: 8cfc80aa94c507de56d068472e152fb8aa0ab8a9
2020-05-29 11:26:08 +03:00
levlam
a599557c9d Support some updates before authorization.
GitOrigin-RevId: 21bd7a06bf41ebc81005b35a0695988d82e6b4a3
2020-03-30 01:48:44 +03:00
levlam
3d07b45a21 Update layer to 111.
GitOrigin-RevId: 47862200a12f3b5b9e5058192d5e9a9cdca862aa
2020-03-14 01:56:47 +03:00
levlam
b8848a2ab4 Simplify NetQuery creation.
GitOrigin-RevId: a01e72f8e196b405dd28dfd75d16cadc7127ec4a
2020-03-16 00:17:11 +03:00
levlam
190419bf8b Early exit from fill_gap on closing.
GitOrigin-RevId: 1c31a0a673ae9aa6b091361cd3f86a2f3b6a40f2
2020-02-10 02:56:32 +03:00