Commit Graph

1111 Commits

Author SHA1 Message Date
levlam
24e2dcd590 Reregister edited scheduled messages.
GitOrigin-RevId: 72d2f5804fb6fb7dc5e4fb026dd1ef6640ee63f6
2020-02-26 16:26:25 +03:00
levlam
801137dcf3 Repair scheduled messages after receiving opposite server flag.
GitOrigin-RevId: 5cead2b4fd6c52835b5dc775efaa9c855d72feb3
2020-02-26 00:28:03 +03:00
levlam
c407b244a0 Prevent extensive pinned message loading from the database.
GitOrigin-RevId: 4365b7bf0c95a89f616731a78017a2f4a15bd1d9
2020-02-25 05:14:43 +03:00
levlam
0d45de3ffb Add support for entities in captions of outgoing secret chat messages.
GitOrigin-RevId: a7267004625b2c1d7235d961ade06587f107420a
2020-02-25 00:07:39 +03:00
levlam
04a002d9f3 Add source to register_message_content.
GitOrigin-RevId: 035429321a0fa15ea8918c634b19f12c21fc1d61
2020-02-22 19:21:58 +03:00
levlam
283a82cfa3 Disable automatic dialog action timeout in chats with bots.
GitOrigin-RevId: 69e0d54d329a2bef15269623d14e0770dffd120e
2020-02-22 19:03:52 +03:00
levlam
dafbedaefe Improve reading chat history.
GitOrigin-RevId: 82e2fc0ca2cbf1c59507fb74120732433ac15603
2020-02-19 20:02:42 +03:00
levlam
e72346cb6f Make repair_channel_server_unread_count persistent.
GitOrigin-RevId: f99be75116f3e5bbfa2224d74723ec4fa5feaa91
2020-02-19 04:14:58 +03:00
levlam
9be2629d24 Update unread_count id last_read_inbox_message_id is not changed.
GitOrigin-RevId: 0c0d82d21ab4401748dddecd26f5a2e544a410a7
2020-02-19 04:02:56 +03:00
levlam
e8af355da9 Do not try to repair unread count in chats not from the chat list.
GitOrigin-RevId: e0743710087c8f35b2772bbac13f1ddad82cc2a3
2020-02-19 03:26:37 +03:00
levlam
fb37825688 Fix last_read_inbox_message_id received through getChannelDifference.
GitOrigin-RevId: 393c920b8c1ff4e5b3469bf8f605111df22c86cb
2020-02-19 03:16:57 +03:00
levlam
6356d8193c Repair again server unread count until it is successfully repaired.
GitOrigin-RevId: 6ec55caaba86e8374a56aeeb22c6486a5b19f508
2020-02-19 03:09:18 +03:00
levlam
6c34d4628d Add source to set_dialog_pinned_message_notification.
GitOrigin-RevId: db3c87f7a5b9c36db19db8346161d95e72a78bbf
2020-02-18 20:28:16 +03:00
levlam
1f01e5ad43 Additional case for pinned message preloading.
GitOrigin-RevId: 038c9b4c1242afaa87487af8c4e4c51be24af537
2020-02-18 20:17:16 +03:00
levlam
fa457236e0 Ignore duplicate auth notifications.
GitOrigin-RevId: 103e8ca99f2b2e35455ccd426a415177287bd814
2020-02-13 03:03:50 +03:00
levlam
a7e6deeab5 Add more checks that updateNewChat was sent.
GitOrigin-RevId: deaaef2b986c3d780ad7f06007b2719ff34d7a65
2020-02-13 01:22:25 +03:00
levlam
fb0bf583ea Better log messages.
GitOrigin-RevId: 75b00311ddb4775305ca235f5276d5b0dd328bf1
2020-02-12 20:25:39 +03:00
levlam
9964c011ec Allow report private chats with users sharing their location.
GitOrigin-RevId: f1b546ea71a534436e487d4a644b4001bd274e09
2020-02-12 03:05:54 +03:00
levlam
660acfef22 Allow outdated unacceptable updates to avoid getDifference after trying to apply every such pending update.
GitOrigin-RevId: 61944ec2b4e81fa2ca61bee5887220964e0c9cbc
2020-02-04 04:06:20 +03:00
levlam
8539d43951 Silence warning about wrong message entities for messages from albums.
GitOrigin-RevId: 13a60e258ab6aae8c80d5ea4cd8bb7037f56985c
2020-01-29 02:05:12 +03:00
levlam
5e0df6f352 Remove unused variable.
GitOrigin-RevId: 82b19ad7cbc3ef47e88e593919274d820ec77e3b
2020-01-27 17:09:12 +03:00
levlam
a89654c3a9 Remove some debug variables.
GitOrigin-RevId: 98b80744574adaa92dea450db049cd166565fc48
2020-01-27 14:28:18 +03:00
levlam
4a1125887a Move update_used_hashtags to MessageContent.cpp.
GitOrigin-RevId: 67b8a3defbc9f2249dff0d57a40bd42ec743cd39
2020-01-27 03:34:23 +03:00
levlam
e666d10c8d Do not include TopDialogManager in MessagesManager.
GitOrigin-RevId: 364ebfc86bc49d8b64a60a82a3383210531774c3
2020-01-27 03:25:23 +03:00
levlam
985e051bbe Add TopDialogCategory.h.
GitOrigin-RevId: ce481612a17e38268b8b2c3a9d7b9ebad5cb572d
2020-01-27 03:19:54 +03:00
levlam
c36d45153c Move resolve_dependencies to Dependencies.cpp.
GitOrigin-RevId: a14d38050af2a7d24f87642e63147642603a7ea5
2020-01-27 03:09:05 +03:00
levlam
129f96da69 Send updateMessageContent when WebPage is changed.
GitOrigin-RevId: 8e20fd788a4f5333f686d96241459774319ac8d7
2020-01-27 02:55:18 +03:00
levlam
f2a4d70865 Register scheduled message contents.
GitOrigin-RevId: 1942ff1c3976ee24969d1c25a94fb89639ffa906
2020-01-25 04:00:43 +03:00
levlam
67e4871ea0 Add reregister_message_content.
GitOrigin-RevId: 53c250a8e805dba37dc4ee255472935762ee609a
2020-01-25 03:50:23 +03:00
levlam
3a78a9160b Improve logging.
GitOrigin-RevId: 0031ef075ec02edf1257674fa69412609eaec4d7
2020-01-24 16:43:37 +03:00
levlam
970cbe1c97 Do not call get_active_live_location_messages while adding just loaded from database live locations.
GitOrigin-RevId: 078ed7af9e7f31eaf207751b25542c224c851f82
2020-01-24 01:16:18 +03:00
levlam
84ecdac7be Resave live location list if some locations expired.
GitOrigin-RevId: 35b949ff6735f4a060a1c7e4af6153eb607d1962
2020-01-24 01:14:43 +03:00
levlam
359153c212 Fix need_delete_file for outgoing messages.
GitOrigin-RevId: 51ac837238bec39b12caeb6cc2ec28e5ca6c8cc3
2020-01-19 04:55:15 +03:00
levlam
075b6f909f Recalc unread chat count after receive of first chats.
GitOrigin-RevId: a69510e2078d61647619b3d53505148d2005ce5c
2020-01-19 04:19:25 +03:00
levlam
8350443093 Add limit to getPollVoters.
GitOrigin-RevId: 7f782124e111680b3b726685d6633e79f3d3b60f
2020-01-18 07:01:05 +03:00
levlam
8ea7e4eccf Fix getMessageLinkInfo for messages in unknown public chats.
GitOrigin-RevId: 7c8b1e0d09d27d96afa930fe5101128c4084fb08
2020-01-18 02:20:28 +03:00
levlam
cde26abe1e Add and use can_have_input_media function.
GitOrigin-RevId: f40cb99154f6429f071dc9785f94a62322ef123e
2020-01-16 06:10:08 +03:00
levlam
4ec628fc78 Add Game::has_input_media.
GitOrigin-RevId: 13be31df3a93d495628f64d7cedc767a6e030a68
2020-01-16 05:18:06 +03:00
levlam
66bd2bfe60 Return typings for users with hidden online status.
GitOrigin-RevId: 6794e84c2ad0b497901d95b10e7e787b02ecfaa7
2020-01-16 04:42:12 +03:00
levlam
9b16d530fd Return accidentally deleted call to cancel_user_dialog_action.
GitOrigin-RevId: c069dfd631a28363ad4d5f237ac1628ef8c5eb5e
2020-01-16 04:08:54 +03:00
levlam
695782fa84 Disable back sending polls to saved messages.
GitOrigin-RevId: 7ad07014892a38c542c6c8ef8962c92a8afc3bd6
2020-01-15 03:13:15 +03:00
levlam
d6b87bd121 Fix TODO in can_resend_message.
GitOrigin-RevId: 87830112e4e9f711774615d0038271892958a191
2020-01-15 02:58:34 +03:00
levlam
7ffd9ad7c9 Move checks for Game message content in dup_message_content.
GitOrigin-RevId: e9d5ad1216c5178b4990b4f17bc5c808cd70cb6f
2020-01-15 02:44:24 +03:00
levlam
ebaea15679 Introduce MessageContentDupType.
GitOrigin-RevId: 06e0728b6853f0c7ec065a1b5eba8e448a8e9835
2020-01-15 02:11:26 +03:00
levlam
4317cc3ef5 Add content checks after dup_message_content.
GitOrigin-RevId: cba1a103b02381490561213391e95f0e4aa08d64
2020-01-15 01:45:59 +03:00
levlam
fa31f168b5 Update layer 109. Add keyboardButtonTypeRequestPoll.
GitOrigin-RevId: eae6bb600cef6eb4d9386c4dc2a762d065b1fa09
2020-01-14 20:18:35 +03:00
levlam
656fda701f Allow bots to send polls to private chats.
GitOrigin-RevId: c1e274b1f0b8a7c7eec8edc304976f8b07b25164
2020-01-13 21:26:58 +03:00
levlam
4e22f29c53 Add td_api::getPollVoters.
GitOrigin-RevId: 47ad78287433a2efb9b66f18a960e4de6060842a
2020-01-13 21:21:58 +03:00
levlam
a7501e1582 Update layer to 109. Add new poll types.
GitOrigin-RevId: cc82f1bfdf1d4cd906212009f2dc8d84e0cb543a
2020-01-11 03:46:26 +03:00
levlam
37cab6d1fc Do not unload last edited message in the chat.
GitOrigin-RevId: d8a5f8053f8d0ef6bd86f503a456f6631a5f9d9e
2020-01-08 04:34:15 +03:00
levlam
eecb70d006 Minor fixes.
GitOrigin-RevId: b8276b548fca9ede4bd2caf27bd45ccc54c93dda
2020-01-07 18:16:57 +03:00
levlam
dbc2e30eff Do not send updateChatActionBar about nonexistent secret chats.
GitOrigin-RevId: 64fe7ef6e66612428fa6b65ed68e89c3de9eab4c
2020-01-06 20:44:21 +03:00
levlam
2dea8aea06 Fix code duplication.
GitOrigin-RevId: 8b4784e364d1e4d016a22bc6806bf732d5d5ac7a
2020-01-06 20:40:58 +03:00
levlam
c627c79b6a Improve logging.
GitOrigin-RevId: 4c5be88bb5f89b50ca1872a8a6686b777fe8aaa2
2020-01-06 04:45:05 +03:00
levlam
e44b02fe45 Fix some includes.
GitOrigin-RevId: 1a3a8bab67f3ed56545d58815187d7a8f99944d9
2020-01-03 01:48:23 +03:00
levlam
76e363cbe9 Allow bots to delete unknown messages.
GitOrigin-RevId: f9cecdf316fb28aacbbef657eaf83554563e6f5e
2020-01-02 17:47:32 +03:00
levlam
80c35676a2 Update copyright year.
GitOrigin-RevId: 09afb551b6e637dc69739fa735b0051a38b9e14c
2020-01-01 04:23:48 +03:00
levlam
54c816d0ac Do not try to load active live locations if there is no message database.
GitOrigin-RevId: 012a87fff20d99e40916a63fa722ea75e2bbf974
2019-12-31 04:31:10 +03:00
levlam
e4e1e34cc5 Add active live location only after the message is added to the chat.
GitOrigin-RevId: 6016418f9330b6d754fd7b8cfa2a8c3127ad519d
2019-12-31 04:26:56 +03:00
levlam
f62b9f0bbd Do not add active live locations to the list for bots.
GitOrigin-RevId: 01b22101f53b70195dc4f90d2a4a9283ec2b7f95
2019-12-31 03:51: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
34bea7d5d7 Fix CHECK.
GitOrigin-RevId: 96fb8c20d2622534cb3ff884ecb007ae49305d34
2019-12-29 23:39:54 +03:00
levlam
6903886372 Disallow calling setChatNotificationSettings in Saved Messages. It doesn't work anyway.
GitOrigin-RevId: bca3756bb3bc5f64c15543eda2f9cef3965a261d
2019-12-29 03:47:35 +03:00
levlam
49bacaf001 Init total count in archive if needed.
GitOrigin-RevId: e1dbc855a60270e7bf40cae5744d9d8800bdd466
2019-12-27 00:32:21 +03:00
levlam
6d742ec9b6 Improve logging.
GitOrigin-RevId: 19ebd22de4f0b6fd036f6d8ec2a40c6808f5f7b8
2019-12-26 23:03:56 +03:00
levlam
e05f97638c Store dialog_total_count between client restarts.
GitOrigin-RevId: 0631f79fd830352cd6f989ca020c8eadb212042c
2019-12-26 22:51:08 +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
1fc1b76d5e Better logging for results of getChannelParticipant.
GitOrigin-RevId: 08918a4577fa4e7337903e221a96ceb3534c11a4
2019-12-25 20:31:27 +03:00
levlam
9dde153313 Better integer casts.
GitOrigin-RevId: 3ae8b651f299dfe134ea5380891296cee44d01e9
2019-12-24 16:36:14 +03:00
Arseny Smirnov
e7e1521fd2 Fix example/tdweb build
GitOrigin-RevId: f924d875361fc363af32e5d703e3cac373927405
2019-12-23 21:33:03 +04:00
levlam
53ce59d00a Do not hide edit date from bots.
GitOrigin-RevId: bea81ad9437f360908cd02a2fe2d63dce99c2390
2019-12-23 19:33:57 +03:00
levlam
64f73bebff Better message entities debug.
GitOrigin-RevId: 05fea435da021773ca6fbb76e81680e4913cde51
2019-12-23 19:01:47 +03:00
levlam
8fd937af26 Better debug logging.
GitOrigin-RevId: 802ee45dc32cbd48023b1bef2678a7399488b674
2019-12-23 02:04:40 +03:00
levlam
c093afbf68 Add source to get_channel_full.
GitOrigin-RevId: 4df2ac6b75f92359bf838226f707742764e92209
2019-12-20 17:17:06 +03:00
levlam
7beb6d99d4 Fix saving repaired action bar.
GitOrigin-RevId: 0612ecd99c4bb15e0123d5337305ff071ec035e9
2019-12-20 16:42:26 +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
0594b9e795 Do not send chat actions to bots, deleted users and users with hidden online status.
GitOrigin-RevId: 8bd7c272b34ae6d977e58e89f0e76a158f02f150
2019-12-18 18:57:21 +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
2c47242374 Check validness of peer_user_id in secret chats.
GitOrigin-RevId: 299ad87085b8c7b1a1f0de15012e54dfdb2c4d6c
2019-12-16 01:58:57 +03:00
levlam
fc130aec51 Skip action bar repair on close.
GitOrigin-RevId: 3fa1fdc3d0664a2fb6d80f1010b2a5c20382253c
2019-12-15 23:38:32 +03:00
levlam
d4a701f48a Add force_create_dialog debug.
GitOrigin-RevId: 31c3d381ea276519a8c93732ad88c6e99ffec295
2019-12-15 23:33:58 +03:00
levlam
cf1902c04a Fix Message::parse.
GitOrigin-RevId: 7366e38479801b4e16eccd9756dd072027fcc0b0
2019-12-15 22:35:30 +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
3ec96b4c30 Remove channels from inactive channels list on new message or after leave.
GitOrigin-RevId: 8c9723ed489a714df0b70abe465c04eba1265b0e
2019-12-13 17:57:00 +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
14f1b3cd4b Always ignore updateReadHistoryInbox.still_unread_count, because it can be wrong even in updates.
GitOrigin-RevId: ff2222911c995605d813a942ccf833b7e7d620bb
2019-12-06 22:49:07 +03:00
levlam
b13096e8a9 Fix adding to database of rescheduled messages.
GitOrigin-RevId: fe07906bdc9ef264d9d40e225dbc8fbb7d547acd
2019-12-06 21:46:57 +03:00
levlam
7b97e98164 Bug fixes.
GitOrigin-RevId: f2575e76da10f0071587504913d8c87acaf91133
2019-12-06 21:21:51 +03:00
levlam
2c030f1bed Fix rescheduling of being edited message.
GitOrigin-RevId: f398f11ac37fbec9edbcbf8b470620f7d43db29d
2019-12-06 20:47:22 +03:00
levlam
bdc8c27bc4 More improvements.
GitOrigin-RevId: 627bf44586c26bc1e4817e42b611a1e470e44ee7
2019-12-06 20:31:34 +03:00
levlam
60c0c3a637 Use actual message_id.
GitOrigin-RevId: e1e62511c4752ad3c1339f694a6937a8d7075bee
2019-12-06 16:26:26 +03:00
levlam
d6ce1dfbc4 Rename have_message to have_message_force.
GitOrigin-RevId: 7ad820c8d73a5bcae4b30ccf2b1e3ba722047878
2019-12-06 05:02:02 +03:00
levlam
2baa52f975 Use exact ID of deleted message in updateDeleteMessages.
GitOrigin-RevId: cbed7d24434e07f5925044fdb65152f9e4809737
2019-12-06 04:56:27 +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
797a117b60 Disable quick ack if reused media is sent.
GitOrigin-RevId: 4e1166d9fd2faf103c3f59775565fc510906d02d
2019-12-06 00:39:39 +03:00
levlam
6520bdea85 Scheduled messages bug fixes.
GitOrigin-RevId: e27dd1ab21e2b43f794bbae75a3c2d62016714c8
2019-12-06 00:31:28 +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
f0cbbb49c8 Do not automatically read content of scheduled messages.
GitOrigin-RevId: a48b63b7645775f6a97abfd76326e830ebbf911e
2019-12-05 01:05:10 +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
6b6d9e509b Add limit to get_scheduled_messages.
GitOrigin-RevId: e49616784f920b526611ac44dd7c5c5d7b599318
2019-12-04 21:52:53 +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
7bd137889b Calculate scheduled messages hash.
GitOrigin-RevId: 2d3fc1e9d4e19913993ddf0d6aaee4303d2b41bc
2019-12-04 20:41:49 +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
fc8f1a9230 Support immediate send of scheduled messages.
GitOrigin-RevId: 84907f350f545dfd0f93129fd61c07692b5906cb
2019-12-03 16:16:19 +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
ff1b4566f0 Decrease total_count when get invalid recent location.
GitOrigin-RevId: 26bd0b3be1211fb2a9cad34034c54d68764b6f56
2019-12-03 00:44:13 +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
f34a515e70 Support updateNewScheduledMessage.
GitOrigin-RevId: 09e706ddb7eab36e139bc6619a92272dcaef1fa4
2019-12-02 19:30:35 +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
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
1a0bb5f56f Add scheduled messages database table.
GitOrigin-RevId: 6007af6d26f1c4577fd3e5f1613e5f89d1610fdc
2019-12-02 03:33:35 +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
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