Commit Graph

387 Commits

Author SHA1 Message Date
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
aee34460ef Support messages from scheduled in Push notifications.
GitOrigin-RevId: f2fb0c8553453f140083afdbd697aa2e420da4c3
2019-12-30 04:51:37 +03:00
levlam
fcb877b78c Treat messages from scheduled as incoming for notifications.
GitOrigin-RevId: b9b428fb65734a1b9b1a9733408ffd828db19f55
2019-12-30 03:31:33 +03:00
levlam
f06e344c19 Add repair_secret_chat_total_count.
GitOrigin-RevId: c4b5f7d791a238aaf7cbd5655342d27fe2ae7080
2019-12-26 22:33:18 +03:00
levlam
ebb5949c4a Add repair_server_dialog_total_count.
GitOrigin-RevId: b7dc63b6f6c2efadf59236fbd6e6bee05d33e448
2019-12-26 22:19:25 +03:00
levlam
de1bf02774 Add updateUnreadChatCount.total_count.
GitOrigin-RevId: e53105b6b7e185fbe68714948a606465d349d0cd
2019-12-26 21:44:35 +03:00
levlam
03311836af Add DialogList.in_memory_total_count_.
GitOrigin-RevId: ab418de72778dc9a51761a5acbcf1fadc2116197
2019-12-26 05:21:09 +03:00
levlam
7e1fa1fcb9 Better warning silencing in force_create_dialog.
GitOrigin-RevId: 2f10cbe2091f2d2d8e15de8e813c5997954f9900
2019-12-25 22:57:12 +03:00
levlam
aa7d8c06bc Add logging in repair_dialog_action_bar.
GitOrigin-RevId: 3aaf69fc3b5f366b00617e52e917a36381b87c2f
2019-12-20 16:32:56 +03:00
levlam
71fb1d87e0 Copy secret chat action bars from corresponding private chats.
GitOrigin-RevId: ced6ee8d98ba7798e8fe941b8506afbb0657d641
2019-12-19 01:27:38 +03:00
levlam
2b94d84a2f Notify server about viewed live locations once a minute.
GitOrigin-RevId: 4658a8807f9acc8820c73fa64a348c86e83dadd2
2019-12-16 18:39:40 +03:00
levlam
ca519dcc81 Notify server when live location is viewed.
GitOrigin-RevId: 526201f4539504800fab4552ff59d7e7a7b83fe2
2019-12-16 04:07:14 +03:00
levlam
fa04e668f6 Better support for GEO_LIVE_PENDING push notifications.
GitOrigin-RevId: 7fb392ec0e6471a09a3b325db48531700204c039
2019-12-14 01:57:17 +03:00
levlam
1dd4e1a767 Add td_api::updateMessageLiveLocationViewed.
GitOrigin-RevId: 2c9d6e1317e6604a23e30efab0dfa21a2e88f01d
2019-12-13 21:05:10 +03:00
levlam
4e223096da Treat forwarded and via bot messages as copied.
GitOrigin-RevId: e3fcd5caea9a08c0a941f549a33356cd9b6075ce
2019-12-13 01:18:07 +03:00
levlam
be30ac854a Use default sequence dispatcher for copied messages.
GitOrigin-RevId: 08058ff0492d0a0c6b432d00b8061b78d7849e94
2019-12-13 00:46:38 +03:00
levlam
2c030f1bed Fix rescheduling of being edited message.
GitOrigin-RevId: f398f11ac37fbec9edbcbf8b470620f7d43db29d
2019-12-06 20:47:22 +03:00
levlam
d6ce1dfbc4 Rename have_message to have_message_force.
GitOrigin-RevId: 7ad820c8d73a5bcae4b30ccf2b1e3ba722047878
2019-12-06 05:02:02 +03:00
levlam
439ff9be0b Do not allow to send scheduled live location and self-destructing messages.
GitOrigin-RevId: 17a93e32f995f67cc164ca7636c8a2025376525c
2019-12-06 04:25:44 +03:00
levlam
211ab071b2 Add MessageSchedulingState to sendMessageOptions.
GitOrigin-RevId: a2a7d6e3c9283b645b0a155f96c8165a7a717b8d
2019-12-06 03:08:11 +03:00
levlam
a3301ae07c Introduce common SendMessageOptions for send message requests.
GitOrigin-RevId: 3cef644b80ec3641a9f15de7a5af13f90a9c7d94
2019-12-06 02:32:23 +03:00
levlam
8bee3c715f Support sending scheduled messages.
GitOrigin-RevId: 64d8e451182313ba95e5af0ae4f9af9f08330475
2019-12-05 20:34:19 +03:00
levlam
c01d0a89e6 Add set_message_id function.
GitOrigin-RevId: 0b8c03b6f26cfae0e388edd387a1d60576fe738d
2019-12-05 16:29:06 +03:00
levlam
11f313c283 Repair scheduled messages when has_scheduled_server_messages changes.
GitOrigin-RevId: 916d603b7b0715cf95ac07b900b820ff17fa1b6d
2019-12-05 00:58:59 +03:00
levlam
28f0cd5df5 Synchronize scheduled messages with the server.
GitOrigin-RevId: e4934cf80b6fd769891a684f01ff7d76eeae9cf9
2019-12-05 00:24:48 +03:00
levlam
f098a71926 Add persisitent has_scheduled_database_messages. Now Message.has_scheduled_messages should be always correct.
GitOrigin-RevId: 8fd4e1feceeae1f96599250410745069ff42b3a1
2019-12-04 22:43:14 +03:00
levlam
4b3c36e924 Send updateChatHasScheduledMessages whenever a scheduled message is added or deleted.
GitOrigin-RevId: df1f6b90fa611f89c6b0c95131c33a6cd446807b
2019-12-04 21:44:40 +03:00
levlam
8b0be018b8 Add send_update_chat_has_scheduled_messages function.
GitOrigin-RevId: 40f93886362b53651c0eb5eb77b3847bc127bd83
2019-12-04 21:01:00 +03:00
levlam
bf0bc88e19 Better name for has_scheduled_messages.
GitOrigin-RevId: 8563f78409e3142baa21ac70f6c5bdeb1728c274
2019-12-04 20:51:52 +03:00
levlam
a99c3ba264 Store and check separately deleted_scheduled_server_message_ids.
GitOrigin-RevId: 45eba775a6d80cb74a62616ff63a9dc1f6fa3ebd
2019-12-04 20:32:50 +03:00
levlam
b9666b727e Add td_api::getChatScheduledMessages. Load scheduled messages from database.
GitOrigin-RevId: ab2554642ff588c227c40d4fa12ecc663608e7a4
2019-12-04 20:06:39 +03:00
levlam
b191c0e3f9 Support editing of scheduled messages.
GitOrigin-RevId: 5c288fcd12e06d13520b7baeb0aeec5acd01da38
2019-12-03 20:26:09 +03:00
levlam
f5027bf97f Add td_api::editMessageSchedulingState.
GitOrigin-RevId: 193c66fa63e84a8a233a3d60f0593df591d9f80d
2019-12-03 04:36:23 +03:00
levlam
256ab1c2f7 Add MessagesManager::get_message_sending_state_object function.
GitOrigin-RevId: 36300a157d085f96afe9dd62b865b952ba38d042
2019-12-03 03:20:38 +03:00
levlam
aa01368b38 Add Message.scheduling_state.
GitOrigin-RevId: fd950850b1258f49f8272e99a0b4975ab11a38d6
2019-12-03 03:12:41 +03:00
levlam
a7769488ac Make two functions private.
GitOrigin-RevId: f4b5c7142586017f1134df1d36a4eb0310cc9216
2019-12-03 02:30:50 +03:00
levlam
f3dfaa6c29 Support scheduled message in MessageId::get_next_message_id. Add get_next_yet_unsent_scheduled_message_id.
GitOrigin-RevId: dfe0c0b13c6312525564eba9f10f390f5ad09778
2019-12-02 23:29:08 +03:00
levlam
57eb92060b Fixes for scheduled messages.
GitOrigin-RevId: 23bc0e408567366d21ba2f0f7be80983b6d92a15
2019-12-02 20:50:10 +03:00
levlam
bfd3d653a7 Support updateDeleteScheduledMessages.
GitOrigin-RevId: 9f2d0cf00a3e6ffe20c1b0834cad69fbb0861ad7
2019-12-02 19:20:54 +03:00
levlam
80d814e2ee Support rescheduling in add_scheduled_message_to_dialog.
GitOrigin-RevId: 0e914bcf3d06f1b1df6f4f7858086c41216e529c
2019-12-02 18:22:05 +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
fb43213362 Add DeleteScheduledMessagesQuery.
GitOrigin-RevId: 958627be18ef34e89e2845d5e4fd095dbd4a66c4
2019-11-30 22:13:41 +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
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