Commit Graph

3454 Commits

Author SHA1 Message Date
levlam
995e8895ba Transparent return of a correct scheduled server message.
GitOrigin-RevId: c260cefdcef0a919f6aeb4a025500cfc3cd5af00
2019-12-02 17:56:03 +03:00
levlam
16f29863cd Support scheduled messages in MessagesDb::get_message.
GitOrigin-RevId: 77f428b6b0012a41b2766b98ccf076d18b5eb513
2019-12-02 17:27:28 +03:00
levlam
7ab7925767 Fix test.
GitOrigin-RevId: 9226f9dd0cc25a55b3371308d3732e54de5b5c46
2019-12-02 04:03:43 +03:00
levlam
1a0bb5f56f Add scheduled messages database table.
GitOrigin-RevId: 6007af6d26f1c4577fd3e5f1613e5f89d1610fdc
2019-12-02 03:33:35 +03:00
levlam
7b53d64492 Fix warning.
GitOrigin-RevId: 4eab0bc2fc97a7c538f54b1935fe830883e29f69
2019-12-02 03:26:52 +03:00
levlam
b13213f9cb Add is_scheduled parameter to on_get_messages.
GitOrigin-RevId: 534179758c55494fce0005d8aceaa74a2c3d7247
2019-12-02 00:11:15 +03:00
levlam
9b7d248518 Store scheduled message date by their server message ID.
GitOrigin-RevId: de3ea20ea659ce9cf620e7223375937c494699a1
2019-12-01 20:50:52 +03:00
levlam
039db3374a Add GetScheduledMessagesQuery.
GitOrigin-RevId: f2881fcd10378fee44b0cfce060c25b18ed86541
2019-12-01 19:36:03 +03:00
levlam
f7cf15b9f2 Add strongly typed ScheduledServerMessageId.
GitOrigin-RevId: 222322bbf861c773b777c3b9beac3bf0dba561db
2019-12-01 19:03:51 +03:00
levlam
fb43213362 Add DeleteScheduledMessagesQuery.
GitOrigin-RevId: 958627be18ef34e89e2845d5e4fd095dbd4a66c4
2019-11-30 22:13:41 +03:00
levlam
c3d470a27c Remove unneeded add_*_inner proxy functions.
GitOrigin-RevId: ef4e8233590c1d4133c65275474c32f7f985d217
2019-11-30 21:22:40 +03:00
levlam
af04f95daa Add separate reget_message_from_server_if_needed function.
GitOrigin-RevId: 18b0a4f38ac429890832851370ff6371f6496ff1
2019-11-30 20:22:44 +03:00
levlam
7ea11b2150 Add separate update_sent_message_contents function.
GitOrigin-RevId: 621fd837d722355a6e5a392b3de390f6bc0839ba
2019-11-30 20:04:49 +03:00
levlam
10c743a839 Add separate speculatively_update_channel_participants function.
GitOrigin-RevId: 73cb67adffb5488686e181d460640e0682e418e3
2019-11-30 19:41:23 +03:00
levlam
0c2c587f8c Add update_top_dialogs function.
GitOrigin-RevId: c5ea2e50e47693d37cb9e2d7dfea6176a2afed43
2019-11-30 19:29:52 +03:00
levlam
a75e53cdf3 Simplify update_used_hashtags usage.
GitOrigin-RevId: 998789ff1c53eaaac86a61728449ac6524e43326
2019-11-30 18:27:08 +03:00
levlam
8d8c3cacd4 Add change_message_files function.
GitOrigin-RevId: 3b6faf4c55cb11281ef98afc32534fb221716c1b
2019-11-30 18:17:34 +03:00
levlam
415229bfa6 Pass only dialog_id to need_delete_message_files.
GitOrigin-RevId: e5396f6bcaea435dca161d0cd47addfca42bfb79
2019-11-30 18:05:30 +03:00
levlam
a69c9a0f06 Simplify update_message usage.
GitOrigin-RevId: e4266a80dc4108053d293b5779fdf04d4988116d
2019-11-30 17:38:46 +03:00
levlam
fc6f1fc5f4 Add comment on calling set_dialog_reply_markup in on_get_message instead of add_message_to_dialog.
GitOrigin-RevId: e932db6bc5078baed759a6c7af6b2c72749db25a
2019-11-30 17:15:46 +03:00
levlam
40d13deeaa Store scheduled messages in a separate treap.
GitOrigin-RevId: dc56897b3faa45e5092d036bbb73f357a6e4c607
2019-11-30 17:04:59 +03:00
levlam
1d9c00e9f4 Use MultiPromise in get_messages_from_server.
GitOrigin-RevId: e257dc31983b987cac0248d1a8dcf4b3cb2bd506
2019-11-30 15:50:27 +03:00
levlam
b78507e81d Use MultiPromise to delete messages from server.
GitOrigin-RevId: 8fa8b27bfb4d3d394016e8b4fd18ea56294dae7a
2019-11-30 15:45:31 +03:00
levlam
d9160fd52c Add treap_delete_message static function.
GitOrigin-RevId: 36433ee3bd262a791a916ee6b0f3207346894193
2019-11-29 20:30:55 +03:00
levlam
fdc81d6d9b Improve spelling.
GitOrigin-RevId: c52f49b8637f641b0781f0af640c8e03a4fed121
2019-11-29 19:24:45 +03:00
levlam
56e4d740e8 Fix misprint.
GitOrigin-RevId: 829f4ff9e24b7c91f3c9e9cbae4c64552c0d8a8d
2019-11-29 19:16:40 +03:00
levlam
3b1ab2ff8f Add scheduled-safe MessageId comparison operators.
GitOrigin-RevId: edc6481519510a425bcf3f08bb46eaac1c923ee4
2019-11-29 19:11:06 +03:00
levlam
0c77eb2745 Pass raw pointers in find_*.
GitOrigin-RevId: 1f62c94647d861e2ff828c64391badd76c8e1ec9
2019-11-29 16:16:02 +03:00
levlam
c710403382 Move cancel_send_deleted_message call to on_message_deleted.
GitOrigin-RevId: 84a141e575f8a1b87508c208fe5f1649ab0900df
2019-11-29 15:57:03 +03:00
levlam
1a636768b9 Add cancel_send_deleted_message function.
GitOrigin-RevId: 64f33bc1540da85a4c2c81ca28d8f4e1849dd9fb
2019-11-29 15:52:18 +03:00
levlam
c65004efde Padd Message pointer to cancel_send_message_query.
GitOrigin-RevId: 2e56372571b970d8549f5a8b9223218f1ffa9244
2019-11-29 15:30:48 +03:00
levlam
9948e41aed Add support for scheduled message IDs in MessagesManager.
GitOrigin-RevId: b489f50556450a142427159a80d6488bf36622d1
2019-11-29 15:03:03 +03:00
levlam
cce190ae58 Fix misprint in documentation.
GitOrigin-RevId: e39858860ee8f88ed5b188756c7990e2c35770f2
2019-11-27 14:54:35 +03:00
levlam
6b24886bf0 Partial support for scheduled message IDs.
GitOrigin-RevId: 752336efc26fb73a038801b99b490d0f68163b04
2019-11-26 23:47:13 +03:00
levlam
67e007eebd Support scheduled message IDs in logging.
GitOrigin-RevId: 4641da410f4cc5c683bfdc2dd67de5dea153fc26
2019-11-26 22:35:16 +03:00
levlam
917a3af6ac Fix some includes.
GitOrigin-RevId: c82e599631dd678f2c69fbf7fd3e9b3cd23ed965
2019-11-26 21:57:48 +03:00
levlam
5fd1339bc1 Increase version to 1.5.3.
GitOrigin-RevId: 3f4380aaeff296842522c70ccf89e21e3ff77cd3
2019-11-26 21:35:14 +03:00
levlam
522dcb03b5 Add PathView.cpp.
GitOrigin-RevId: e6dec7b3a5d663e9390bcfafdf6ebd8e74d5ea9c
2019-11-26 21:13:38 +03:00
levlam
12cd507909 Remove some misc.h usages in headers.
GitOrigin-RevId: 3f5ca0369113e9815935a6c6cb0fe0c5a051c248
2019-11-26 20:53:50 +03:00
levlam
0618005a95 Add FullMessageId.h.
GitOrigin-RevId: 758133149ff3317b3d9d3f86b1a841e8f34ca35a
2019-11-26 19:53:10 +03:00
levlam
099e767b6b Add ServerMessageId.h.
GitOrigin-RevId: f71d1f41f84c2263890875271f47f938e792aa55
2019-11-26 19:33:18 +03:00
levlam
decae25ea4 Add MessageId.cpp.
GitOrigin-RevId: cef61aa16eec0dfde026a611535487012e89f50f
2019-11-26 19:18:57 +03:00
levlam
4c5dbc4160 Add support for scheduled message_id.
GitOrigin-RevId: 1e56677062f8b59501fe64760ede980b9cb9bceb
2019-11-26 18:52:59 +03:00
levlam
727d0f1c6f Fix on_get_web_page_instant_view.
GitOrigin-RevId: 6325584a6481566bde5202e818ef02301585d16c
2019-11-26 03:45:23 +03:00
levlam
9da6ecaf1f Make MessageId layout private.
GitOrigin-RevId: a123b1bd7fe02110e699878c6c60dcc41b90c960
2019-11-26 03:32:05 +03:00
levlam
b4e45a2852 Make MessageId::SERVER_ID_SHIFT private.
GitOrigin-RevId: c7fa31a1fda75d874c674f0ee8e9ddcebde21c9d
2019-11-26 03:07:45 +03:00
levlam
5b1d363918 Add Chat.has_scheduled_messages flag.
GitOrigin-RevId: 6d7f211647c738d5912476232e8842c245d1f884
2019-11-25 19:11:24 +03:00
levlam
2a335089f9 Save is_from_scheduled Message flag.
GitOrigin-RevId: 6db9c1a244f275372fddd74977fdce37e8ffad35
2019-11-25 03:36:49 +03:00
levlam
c94b54f7f5 Improve getChatStatisticsUrl description.
GitOrigin-RevId: 92c97cb1f34a444997c04feca094e951be59d670
2019-11-25 03:33:18 +03:00
levlam
99779fe3c1 Add support for multiple documents in WebPage.
GitOrigin-RevId: 54785578f34849900c6e75cf94bc71d1820f9083
2019-11-24 03:32:37 +03:00