Commit Graph

185 Commits

Author SHA1 Message Date
levlam
cd2e596b50 More MessagesManager refactoring.
GitOrigin-RevId: b458c10b0a59704a07030fe4b8dd4891051cd52c
2018-10-02 02:40:34 +03:00
levlam
e07ab63768 Add save_*_logevent methods.
GitOrigin-RevId: 5043948638752fe85d327be5143e79c372438ec9
2018-10-02 02:01:17 +03:00
levlam
21ac4d41d1 Add MessagesManager::send_get_scope_notification_settings_query.
GitOrigin-RevId: d4bc141bb3d5e730427cc07df21d82461312db74
2018-10-02 01:30:03 +03:00
levlam
4d8a832b7d Reduce more cpp source code interdependecies.
GitOrigin-RevId: e80ac4246299a5a3bf515977c24d281055fcadb6
2018-10-02 00:24:45 +03:00
levlam
ad81123d60 Make CallsDbState private to MessagesManager.
GitOrigin-RevId: b1d4b01abff4a534765e3fc52b07db7bd9d07def
2018-10-01 01:34:06 +03:00
levlam
091d7143e3 Fix includes.
GitOrigin-RevId: 68b59141c12d6e24ddaf0fa48008bf58935bd818
2018-09-29 04:41:15 +03:00
levlam
0d31fb4e2b Add DialogDate.h.
GitOrigin-RevId: cbfc7cea409685d8e04e37c856fa30b8b361ba0d
2018-09-29 03:39:27 +03:00
levlam
79a613cf45 Move NotificationSettings to separate header.
GitOrigin-RevId: cb0c2e33a0a075dfea2b70ff671de8db0db36ca0
2018-09-29 03:29:57 +03:00
levlam
b6a8624c60 Move DraftMessage to separate files.
GitOrigin-RevId: acf4722d7c1328ee4048f8ca162060923e0be6fe
2018-09-29 02:45:43 +03:00
levlam
4cf6aba717 Move MessageContent and InputMessageText implementations to corresponding files.
GitOrigin-RevId: d308007a3c850f1969b64a08865787ee7b340b34
2018-09-28 23:57:34 +03:00
levlam
362fc331c7 Add get_message_content_deleted_user_id.
GitOrigin-RevId: fe1c4db7920238eb623d5557277472af93523ca1
2018-09-28 19:22:30 +03:00
levlam
58b724c5c0 Add get_message_content_pinned_message_id.
GitOrigin-RevId: ab4fcbe42fdcb177575cdc167a446ea6b334f331
2018-09-28 19:16:03 +03:00
levlam
6539fbcff6 Add get_message_content_new_participant_count.
GitOrigin-RevId: b4c884cdd8d947af3a5a8a3263da2b3bc547be4d
2018-09-28 19:07:14 +03:00
levlam
d5683ee224 Static create_text_message_content.
GitOrigin-RevId: 9def379214c944dce0d42c2fcf08198a49ea1db5
2018-09-28 18:48:03 +03:00
levlam
c061da558b Make create_input_message_content static.
GitOrigin-RevId: ca85aeed0a712ddaff7f44d14f75d119f0feb3b0
2018-09-28 17:50:02 +03:00
levlam
09beaef806 Make process_input_message_text static.
GitOrigin-RevId: 3e7989ecb8ba90da7324748022ebc77b3ebc7660
2018-09-28 17:39:07 +03:00
levlam
12a21587ab Add MessagesManager::get_input_caption.
GitOrigin-RevId: 4145fde2f54092c358c49fc891707186cca277f3
2018-09-28 17:21:05 +03:00
levlam
bfde2f0e32 Add MessagesManager::create_input_message_content.
GitOrigin-RevId: e230e6c6069777e05dde34230492981846064646
2018-09-28 16:59:29 +03:00
levlam
10e4f008b8 Return pointer from get_message_content_text.
GitOrigin-RevId: c1556ee6e58e13e574881585f889744c4be1d4a4
2018-09-28 05:09:28 +03:00
levlam
4451d8d2ed Add add_message_content_dependencies.
GitOrigin-RevId: 10c2cafe4de13907cad62c7f5df55f008fffbc94
2018-09-28 04:29:55 +03:00
levlam
4597689060 Add Dependencies.h.
GitOrigin-RevId: 791b4dc804a8c0b734b027ff348b16bbfceede5c
2018-09-28 04:21:20 +03:00
levlam
144816b469 Add static {g,s}et_message_content_web_page_id.
GitOrigin-RevId: 98d95d47e0e1d01ed42be3eede01650474e138d9
2018-09-28 04:10:44 +03:00
levlam
cb9e935dee Add static merge_message_content_file_id function.
GitOrigin-RevId: 0f43afe01427e71bb0496b877a857974148b1029
2018-09-28 03:38:45 +03:00
levlam
9ec9377815 Make more functions static.
GitOrigin-RevId: 70c3e1fee2af9620ef61e4d337ba8126ca41634c
2018-09-28 02:16:49 +03:00
levlam
8236bb8c0e Seaprate static method for merge_message_contents.
GitOrigin-RevId: 7228109e708462483b73e46ed5dc60631f0e0420
2018-09-28 01:39:12 +03:00
levlam
02893fff41 Make most MessageContent-handling methods static.
GitOrigin-RevId: 31d8d7e25c835afbab2a65e649b2a533902b0223
2018-09-27 22:44:40 +03:00
levlam
c1f4e9d292 Make get_*_duration const.
GitOrigin-RevId: 85b5eb4cb221c2144318989d4d93b45784adcdf4
2018-09-27 21:14:32 +03:00
levlam
6ac930139b Const-correct unique_ptr.
GitOrigin-RevId: 938cf4b0261cfea123066ae1fc4197754da11e68
2018-09-27 19:51:45 +03:00
levlam
a23d62905b Better MessageContentType output to StringBuilder.
GitOrigin-RevId: f755a36dc462db448a7ca584f8e061b161d3defd
2018-09-22 02:29:33 +03:00
levlam
b11542ce6a Rename MessageContent.get_id() to get_type.
GitOrigin-RevId: 3f718e571537875b66c9886d71cfc5c66213c8a7
2018-09-22 00:51:29 +03:00
levlam
946b46ad8c Strong typing for MessageContent type.
GitOrigin-RevId: b89a431f6252ec47ebf2c3653eafbf71abbd7678
2018-09-22 00:33:41 +03:00
levlam
e086b4f740 Add MessagesManager::get_current_state.
GitOrigin-RevId: c5bcea8ae60503a50ab9707b61fcc082ebc89f79
2018-09-21 10:15:07 +03:00
levlam
4b2e3619f7 Use fail_send_message directly if possible.
GitOrigin-RevId: f537f3f2517a7775d5714e38b57a7ce11b2042f6
2018-09-19 19:59:23 +03:00
levlam
91950e9452 Fail to forward old messages after restart.
GitOrigin-RevId: 948954d3f6b9e3c7c4a8479233c95115cc676620
2018-09-19 19:43:01 +03:00
levlam
dccef30582 Automatically fail to resend very old messages.
GitOrigin-RevId: 6c39972e266b8be8be74f25de63a0008317de42e
2018-09-19 19:18:10 +03:00
levlam
2d05be04dd Follow new server-side limits on first/last name and title length.
GitOrigin-RevId: 89fe4eb85c42859974142fd163ea9fd062fde459
2018-09-17 07:00:19 +03:00
levlam
f9cbe247cd Add Wdeprecated flag.
GitOrigin-RevId: 8aa900d7103efd0207f7f0fcb09e3bd2b7387564
2018-08-28 01:08:51 +03:00
levlam
710c548015 Add more debug to get_message_id_by_random_id.
GitOrigin-RevId: 3a2d2acfceb1f6b5f78cc46a04fd3ffb2772d6a5
2018-08-05 01:29:53 +03:00
levlam
72d2235f6e Improve get_next_message_id.
GitOrigin-RevId: af978d83a85415439a6168964e7f05335c16b76d
2018-08-05 00:05:29 +03:00
levlam
b00a0b4ebb Add required actor name to MultiTimeout.
GitOrigin-RevId: 918ad6358dd5c0056452df5da694e8b94c63a47a
2018-08-01 20:31:20 +03:00
levlam
c63aaf7cde Add source to ttl_unregister_message.
GitOrigin-RevId: d25685de6cbb92569f29f22e111b612d76e4fcb9
2018-07-25 16:49:44 +03:00
levlam
15828a2329 Add members filter to searchChatMembers.
GitOrigin-RevId: 8d553d6c73e32446eaa7e6ebb5bdf562458d258d
2018-07-20 03:00:17 +03:00
levlam
fc966adca9 Add exclude_secret_chats parameter to clearAllDraftMessages.
GitOrigin-RevId: 7b08fe3e954d9e361d7e20c4341575e2101e6dbc
2018-07-19 17:23:18 +03:00
levlam
460675316c Add td_api::getChatMessageCount method.
GitOrigin-RevId: f2257074e276e12084b43a63db17f852fb5f500e
2018-07-19 16:58:09 +03:00
levlam
4594885e61 Update layer 82: chatReportReasonCopyright, clearAllDraftMessages.
GitOrigin-RevId: 79d9adf61a17b11996eeecfa94c205d1cdc34a51
2018-07-17 06:46:27 +03:00
levlam
bdbe8f990c Add more debug.
GitOrigin-RevId: cfc7b2526233caa5beb2a1ed3d145224354ba3ae
2018-07-15 12:29:28 +03:00
levlam
deecdb66bc Fix some td/actor/ includes.
GitOrigin-RevId: f9cf960b96018c4eb6169d2ec6cb5d3fbc16c0ec
2018-07-03 22:29:04 +03:00
levlam
dcdbf6854b Add is_dialog_muted function.
GitOrigin-RevId: caf78597b4711273e26f21b4276a3a604395b387
2018-07-02 04:21:18 +03:00
levlam
db48e0abac Add updateUnreadChatCount.
GitOrigin-RevId: 151d11964c23443da8a975d32e343226e650bb9d
2018-07-02 04:02:30 +03:00
levlam
c40cacfa34 Marked as unread support.
GitOrigin-RevId: b439d8365dad9580cf2d93f97037a2f37cd83adf
2018-06-28 00:08:44 +03:00
levlam
b20c77d459 Add message_*_length_max options.
GitOrigin-RevId: 27fc7c79b0820916daaf23745078a4204c3dc6c9
2018-06-27 02:28:49 +03:00
levlam
aa13a57a3c Update layer to 82. Contact.vcard support.
GitOrigin-RevId: 302d65351cfaeb6b4e82c594565ab1aef18b2a42
2018-06-26 00:10:53 +03:00
levlam
818d6dee0c Fix suffix load in presence of message unload.
GitOrigin-RevId: 0324254270c62f8ea97d1d787990490d148319d4
2018-06-21 20:55:59 +03:00
levlam
7ff339e804 Refactor ttl_read_history.
GitOrigin-RevId: 6d5c57716a332a88f30ff11c831371568768a125
2018-06-20 22:18:53 +03:00
levlam
4121f8d6ab Add ReadHistoryInSecretChatLogEvent.
GitOrigin-RevId: 92da5d4224dee274267123c2467704197d3cc3d4
2018-06-20 04:02:02 +03:00
levlam
4d5197d31c Edit message media.
GitOrigin-RevId: eba2f32f4e033720ea1143463a9f3d1eae54880d
2018-06-19 02:31:34 +03:00
levlam
70be2b6f85 Add chat.is_sponsored field and updateChatIsSponsored.
GitOrigin-RevId: 0100c868c410f9b4324b3e0de9912bec22d172d5
2018-06-15 22:52:52 +03:00
levlam
3a8c0f131e Rename promoted chat to sponsored.
GitOrigin-RevId: e385126253199a46b55fba7d350e0c115a8c333e
2018-06-14 00:07:24 +03:00
levlam
1bed66122a Add is_update_new_chat_sent flag.
GitOrigin-RevId: bdc493e48f8ab1f9e5d50780edf98e7d63c8159c
2018-06-08 19:42:21 +03:00
levlam
60200b0b40 Add cancel_upload_message_content_files.
GitOrigin-RevId: c35ba525230eca2ab086ac3e109dc81cd96665f3
2018-06-05 19:54:33 +03:00
levlam
98aba6304c Persistent getDialogQuery.
GitOrigin-RevId: e882cd049aac7aa86cf03750a78c3b92635f5379
2018-06-01 19:58:23 +03:00
levlam
89d3b57265 Fix message_count_by_index when message content is changed.
GitOrigin-RevId: 1ac18955acfcce44881621932dbbf88bc59474da
2018-05-23 18:28:46 +03:00
levlam
d3b5029cba Optionally merge files in update_message_content.
GitOrigin-RevId: 785f1bca1360ab2330744ff55e93421eb7834801
2018-05-23 17:28:23 +03:00
levlam
47d5082253 Better repair_channel_server_unread_count.
GitOrigin-RevId: f89556066014dd7e9e6031f0157ae2a3ecd65ad6
2018-05-10 20:06:48 +03:00
levlam
70438d829a Various fixes.
GitOrigin-RevId: dd3f4879617f42023c9c918d841d99299b13c7cf
2018-05-09 20:14:17 +03:00
levlam
c65b998cd6 All updatePromotedChat.
GitOrigin-RevId: 4a3c6283026ba15836cb7fa011c4b3ad21a64baa
2018-05-08 23:02:15 +03:00
levlam
5effa0f662 Fix CE.
GitOrigin-RevId: 7a8640af6bb30c1f079c85ef01ccc70023992432
2018-05-07 20:20:20 +03:00
levlam
000e07e679 Combine getNotifySettings queries.
GitOrigin-RevId: 8a02e9513793c85cbc833d1b17d12bdbc6b416cb
2018-05-03 17:16:04 +03:00
levlam
fc4d401eb6 Better is_dialog_inited.
GitOrigin-RevId: ba385e0322e831362a612259c4315faf7338c14f
2018-05-03 16:29:33 +03:00
levlam
a37dfc406b Delay before sending read history request to server.
GitOrigin-RevId: 5452973469e6142cefa00d063ceef36add728f14
2018-05-03 15:36:05 +03:00
levlam
a82dfe4735 Remove allow_error from ReadHistoryQuery.
GitOrigin-RevId: 7f285eb790f55b3bcdddc5c912a1c1cb094719e7
2018-05-03 14:13:55 +03:00
levlam
1b64400167 Read chat history while scrolling.
GitOrigin-RevId: 0795d97634a7420d2d3784304ae314cd075ac1d5
2018-05-03 11:57:19 +03:00
levlam
5b1b1273b4 Implement calc_new_unread_count_from_the_end and repairing of server unread count.
GitOrigin-RevId: e11417e08db93814f3093677c60482fb14acbc53
2018-05-02 13:30:52 +03:00
levlam
6a3241dc12 Add dummy calc_new_unread_count_from_last_unread.
GitOrigin-RevId: eb66e452c3e99344180493491d588e0871b3fd91
2018-05-01 21:12:00 +03:00
levlam
eeb94af4df Refactor calculation of unread_count to calc_new_unread_count.
GitOrigin-RevId: f4cdce4e37db8d368074cb10dad13fef74b73dbf
2018-05-01 20:13:36 +03:00
levlam
b998431081 Persistent change_dialog_report_spam_state.
GitOrigin-RevId: 8a11181cc78b3fe2e7536c49a198c6fa99fa348c
2018-04-29 08:58:45 +03:00
levlam
6c17d7933c Persisitent resetAllNotificationSettings.
GitOrigin-RevId: a726d3d7ccdebb26d3aacdad9964725cb169aea9
2018-04-28 22:50:12 +03:00
levlam
0eb61a5687 Persistent UpdateScopeNotificationSettings.
GitOrigin-RevId: 3cbd98d3f6ff3aed617228bfc286bced9dc7249a
2018-04-28 22:31:42 +03:00
levlam
e9ba26c4f0 Default disable_notification support.
GitOrigin-RevId: 014a8b141dc1cff5126748c7785ea22d12aef7b3
2018-04-28 21:05:04 +03:00
levlam
6b60ac613f Fix auto_read in addLocalMessage.
GitOrigin-RevId: 776a4c5dc012c482751ba2603ce4722df6b3f701
2018-04-27 19:51:11 +03:00
levlam
9b49092162 Add get_message_content_text.
GitOrigin-RevId: df44be6b215c945100f86d0d8cbb2397d90546ce
2018-04-23 02:02:29 +03:00
levlam
01d13bf005 Update recent hashtags when message is edited.
GitOrigin-RevId: ba6dc7bda612d96f9417516fe684d053e68a9e24
2018-04-23 01:50:07 +03:00
levlam
d80148afae Explicitly specify enum underlying type.
GitOrigin-RevId: 65a7cc4df6b07fe095e898c06ad53deb5e188df3
2018-04-19 16:08:30 +03:00
levlam
a87d1bf960 Add source to get_message_text.
GitOrigin-RevId: 7be2398a51a95fa8a57b934042e945be0052c34f
2018-04-16 16:52:00 +03:00
levlam
47611d582e Fix add_dialog_dependencies.
GitOrigin-RevId: 070c00847699580432d29ee7ba3c4ff38c468a66
2018-04-13 19:10:24 +03:00
levlam
d7d91bbaf3 Update layer 78: new notification settings API.
GitOrigin-RevId: affa0a97035b69e2f710b289f300139e7b41d116
2018-04-09 19:30:27 +03:00
Arseny Smirnov
0eee63b723 sendAuthorizationForm (with bugs)
GitOrigin-RevId: e68b57a2f6ff2e117913c40779cc9473153828ab
2018-04-06 22:37:30 +03:00
Arseny Smirnov
fb79d6f95a Layer 78. Initial Telegram Passport support.
GitOrigin-RevId: 197994bcf62a76cd963f32a8dd7f5951d7b6588b
2018-03-27 16:11:15 +03:00
levlam
8c4461b561 Fix last_database_message_id.
GitOrigin-RevId: 16bf017eb0f7f1be3240bd880a59a1fcb8740367
2018-04-04 22:30:10 +03:00
levlam
e9490eb6e1 Add debug to attach_message.
GitOrigin-RevId: d148fce42b3e59a30119c827b5ef1e736dfaa1a5
2018-04-02 02:30:25 +03:00
levlam
7e21d35e43 Add more debug.
GitOrigin-RevId: 29d4bceb055f3085d53384ce7e873fc38793bf80
2018-04-02 00:01:09 +03:00
levlam
f8efdc7b9d Better td_api::addLocalMessage.
GitOrigin-RevId: be6a9d27d3d683fdd7c72bca6bb8ba080bdbfc0d
2018-03-27 17:55:33 +03:00
levlam
4e22261c6b Add td_api::addLocalMessage.
GitOrigin-RevId: 795a22f72cfd5edbfa901207045d3b92fac2d3ee
2018-03-26 23:20:56 +03:00
levlam
0b54ca677b Better cancel_user_dialog_action.
GitOrigin-RevId: f7b9518af4f98a2f36bece905b6a2e7222cda28c
2018-03-14 21:36:28 +03:00
levlam
52f45abf65 Handle chatAction timeouts.
GitOrigin-RevId: acd087bf97f6ff39af8111b1c8d984f72f041467
2018-03-13 20:48:08 +03:00
levlam
8eaea5d4af Send updateUserChatAction from on_user_dialog_action.
GitOrigin-RevId: 6af5402efa9ac21b9054278c839d982b4fbdcb6e
2018-03-13 11:57:58 +03:00
levlam
c489e3b91d Automatically send ChatAction while files are uploaded.
GitOrigin-RevId: 45c27ab71ede8c0f82265b34b752e03ffc1c1c8c
2018-03-12 23:33:56 +03:00
levlam
76de8f374e Preserve remote_id in update_message_content.
GitOrigin-RevId: 136c7a391374a54d1e1c5afac5b68d986c9c7001
2018-03-08 22:01:24 +03:00
levlam
e0381695a3 Add is_secret flag to messageAnimation, messagePhoto, messageVideo and messageVideoNote.
GitOrigin-RevId: 15bcfda6fb5723c6e4468ce73d0ad737a09426dc
2018-03-04 22:18:32 +03:00
levlam
aeff9a99d1 Do not increment message view counter in closed chats.
GitOrigin-RevId: e08b6cbea02602538fa5189eeee574a9d65ce604
2018-03-04 17:59:18 +03:00