Commit Graph

1464 Commits

Author SHA1 Message Date
levlam
77fff9c578 Use GroupAnonymousBot as a fallback sender for bots instead of 777000.
GitOrigin-RevId: 30e2ff3c9db2efc05b3bcbfd610ad8d6492ad66e
2020-10-05 00:51:45 +03:00
levlam
c916566e76 Fix MessagesManager::get_chat_object.
GitOrigin-RevId: a5dddba5f844b8064fe7083c8532f9d2286b9dba
2020-10-03 21:47:12 +03:00
levlam
99163ff431 Fix canGetMessageThread.
GitOrigin-RevId: 688fd7615bc841284611393f77e8598e7d9cba13
2020-10-02 15:01:11 +03:00
levlam
ce1138ea13 Fix handling of wrong is_outgoing flag.
GitOrigin-RevId: 2b5a98ddc37139aaae39615fb5719cd0ed84ed7a
2020-10-02 14:31:41 +03:00
levlam
86e7186bae Rename "chat_unload_delay" option and fix its implementation.
GitOrigin-RevId: a81de53455816c959986cd3924674600d0086adc
2020-10-02 12:42:16 +03:00
Andrea Cavalli
e0b335bc3e
Option "chat_unload_delay" for bots (#1219)
* Option "chat_unload_delay"

This option allows to override the default chat unload delay. The allowed range is from 60 to 86400 seconds (1 day)
2020-10-02 12:19:43 +03:00
levlam
7d5b47990b Do not handle errors of messages.getReplies in channels.
GitOrigin-RevId: f80a65a578fa4ced3596acc635fa6759feb8e844
2020-10-01 22:57:24 +03:00
levlam
610443fc22 Send updateMessageInteractionInfo after ReplyInfo change, only if reply info is visible.
GitOrigin-RevId: ccafd95ce42cfe318a4a9fb096e0580093decf4c
2020-10-01 22:43:13 +03:00
levlam
ca1594c8ec Update reply info if linked_channel_id is changed.
GitOrigin-RevId: 629721095881d2c9a401519d26f75bbbba4446f9
2020-10-01 22:28:54 +03:00
levlam
711b0cfd4f Introduce DialogAction class.
GitOrigin-RevId: f94011c1b70cdc17115bfbb981c6e000110adfbf
2020-10-01 19:28:10 +03:00
levlam
c332f26352 Introduce messageReplyInfo.
GitOrigin-RevId: 10e757b71fde4e29aa81905bfba5fc4ca5523bbb
2020-10-01 16:12:20 +03:00
levlam
d66c404f3a Fix can_get_message_thread flag.
GitOrigin-RevId: 4f44e18cecabd3e7f1aff85a91078b3749e76bfc
2020-10-01 15:52:19 +03:00
levlam
6e9108a69d Disallow message threads in not-linked chats.
GitOrigin-RevId: aaf20c0076c3fe2ceb30b65d1f9fef602aa8e51d
2020-10-01 15:47:58 +03:00
levlam
6c63c859c9 Add MessagesManager::get_top_thread_full_message_id.
GitOrigin-RevId: 002b7503278a9a84c96b41088b888220498b10f6
2020-10-01 15:25:54 +03:00
levlam
6944b4d435 Pass expected_idalog_id instead of channel_id in GetDiscussionMessageQuery.
GitOrigin-RevId: b5e537a49e25c5d342e8dd682cb6ca7e4bfc2686
2020-10-01 14:47:02 +03:00
levlam
b8f81b2ac0 Fix message_thread_id in td_api::messageThreadInfo.
GitOrigin-RevId: f308844f1ea02eab8993df5c660d7cf1242484bc
2020-10-01 12:13:20 +03:00
levlam
476a18630f Initialize top_thread_message_id when reply_info is changed.
GitOrigin-RevId: 1cf186d342468dc9d5f0c2cd9c5052905a102f62
2020-09-30 14:01:40 +03:00
levlam
98524b6748 Improve Message.can_get_message_thread.
GitOrigin-RevId: 2f5df56934729c09b52c9324d8bd654570daa3c5
2020-09-30 11:57:52 +03:00
levlam
fcd5fd0eb7 Duplicate per-thread chat actions to the main chat.
GitOrigin-RevId: 10fe6e5e44f431409d41526d195b7c9bab2d39a6
2020-09-30 04:59:03 +03:00
levlam
aa180ebed2 Add MessagesManager::send_update_user_chat_action.
GitOrigin-RevId: ee85fa091db96aa88abf9aa13e7f2a6609b4e69e
2020-09-30 04:40:30 +03:00
levlam
b751acc3ae Add td_api::getMessageThreadHistory.
GitOrigin-RevId: c5aaa396b1fcdd6704302296e407989ff19be0a0
2020-09-30 04:26:39 +03:00
levlam
22b695515c Save linked_top_thread_message_id for channel messages.
GitOrigin-RevId: fc11105fc3fea044950362efdb94fa1a5de7e5a0
2020-09-29 15:06:08 +03:00
levlam
efb100cc9d Allow to find messages in a thread in a different dialog.
GitOrigin-RevId: 1e874b2bd46408eda12a6d2b8ffe59000c4fe5a5
2020-09-29 13:51:18 +03:00
levlam
7cde6f0adb Save local thread message ids.
GitOrigin-RevId: d0905e9b8ae4d6bed1d25d6ecc6c159d65dc87cd
2020-09-29 00:22:35 +03:00
levlam
ab99fc7a8d Store yet unsent message IDs separately for different threads.
GitOrigin-RevId: f68b88a1ea05dcb3096357328635191cae02edcb
2020-09-28 16:08:35 +03:00
levlam
1d9989cbd7 Add top_thread_message_id column to the database.
GitOrigin-RevId: 83cd66038c36236305c7a9ed70df09561e89e190
2020-09-28 15:13:25 +03:00
levlam
e20b6ea9fc Fix getRepliedMessage.
GitOrigin-RevId: 6fa5ba6ea7d880433a5b047c79cb49823cd26313
2020-09-28 14:37:45 +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
e294921d5f Improve can_get_message_thread flag.
GitOrigin-RevId: 29d2e2870839407b446c435f6a24dc63bc535dbc
2020-09-28 13:55:05 +03:00
levlam
245185d260 Rename flag to can_get_message_thread.
GitOrigin-RevId: 7c34bb6f576421a27ed6aa8362075ed20577f743
2020-09-28 13:10:12 +03:00
levlam
8ab932460a Fix deletion of all messages from user in the Replies chat.
GitOrigin-RevId: ac3ba0cb16d70fbec939558904f04b78a6907498
2020-09-27 15:00:04 +03:00
levlam
f1dcdc9a49 Fix reply_header for service messages.
GitOrigin-RevId: ff9b1a5bcdd557362a34282a66734fa077b6099c
2020-09-27 01:47:16 +03:00
levlam
d20bf6001f Hide and show replies when reply markup is changed.
GitOrigin-RevId: 2cf53851a4ec8c72b72fffae15d256a7a5bd5761
2020-09-25 16:37:24 +03:00
levlam
1fe397e43d Make optionValueInteger value int64.
GitOrigin-RevId: 7da1c4f051691ff7df31627115a9a37e6c5d5802
2020-09-25 00:46:16 +03:00
levlam
b9e27e28b9 Make ContactsManager::get_service_notifications_user_id static.
GitOrigin-RevId: 28c9d570e1b9bfc7987dc299b87c0bb8ac33b38e
2020-09-24 23:04:32 +03:00
levlam
90ee4bd63c Minor fixes.
GitOrigin-RevId: ef4e2cfe4f198caec26daf04423eb26afedde5bb
2020-09-24 19:15:42 +03:00
levlam
e0adaebb91 Unify logging of request responses.
GitOrigin-RevId: ae4c0a3881a89aa235baa08c07ec97a914437d8c
2020-09-24 16:08:04 +03:00
levlam
089fda8d13 Add blockChatFromReplies method.
GitOrigin-RevId: 45591f36bd5482d567c758b42572b953babe2537
2020-09-24 15:29:34 +03:00
levlam
a1a04c3a0f Support sending messages to threads with message album root.
GitOrigin-RevId: 59f9b1a557b5130f266e06eba1ad62f26d090769
2020-09-23 21:58:55 +03:00
levlam
2c8900704f Correctly apply GetDiscussionMessage results.
GitOrigin-RevId: 2c73e76425bfb17635c02079933cbb6ec7ad6196
2020-09-23 18:26:27 +03:00
levlam
ca2465a025 Clear message thread draft if needed.
GitOrigin-RevId: efb50d58b77d249417937c9ff2ba292bc664a994
2020-09-23 02:09:30 +03:00
levlam
e2a596e11f Add chat_id and message_thread_id to messageThreadInfo.
GitOrigin-RevId: 57945b02f90e74aba10e519f0f140e97f5447f9b
2020-09-23 02:02:41 +03:00
levlam
25676d7ff0 Allow to specify message_thread_id in sendMessage/sendMessageAlbum/sendInlineQueryResult.
GitOrigin-RevId: b9d3545b42355c04afe305f05c0366b0bf3095b0
2020-09-23 01:52:16 +03:00
levlam
a83a356e44 Support local draft messages in message threads.
GitOrigin-RevId: f75e36f803b0aea5c6aff83831c31e0a312898db
2020-09-22 19:45:27 +03:00
levlam
3522d8dae0 Repalce getDiscussionMessage with getMessageThread.
GitOrigin-RevId: 8f5a828b3d1decf9c9c9061eaa706362b2b0272b
2020-09-22 17:27:35 +03:00
levlam
cb3f390a92 Unify "log event" spelling.
GitOrigin-RevId: a1a491981596c56dbf7541d80ead1ea9f5d5bd04
2020-09-22 02:15:09 +03:00
levlam
9a8895e043 Add get_log_event_storer convenience method.
GitOrigin-RevId: 0651bb08a5c41917b69836140e3ff512ab571571
2020-09-22 01:39:45 +03:00
levlam
08ff725767 Support viewing messages in message threads.
GitOrigin-RevId: 5bde413f4192993e12b8e89ff5cb569421b90d78
2020-09-22 01:13:06 +03:00
levlam
e283ad8ac6 Use send_closure_later to load *Full to exclude possibility of loading them from the database synchronously and invoke some side effects such as message loading synchronously.
GitOrigin-RevId: 4c97db4ce3fd517274380eb9eea8e586c6f04399
2020-09-21 16:09:17 +03:00
levlam
621c920655 Add LogeventIdWithGeneration helper class.
GitOrigin-RevId: 838115e565a4b1b349d5248117ac869d2e73b6e1
2020-09-21 15:21:41 +03:00