Commit Graph

605 Commits

Author SHA1 Message Date
levlam
eb72b64c80 Add reply_in_dialog_id and message_thread_id support.
GitOrigin-RevId: 4b8a21566fbf6d31a6f4ef2b19f787361e2d1a1a
2020-09-10 16:29:10 +03:00
levlam
aa6c746e8d Add MessagesManager::fix_server_reply_to_message_id.
GitOrigin-RevId: cafb49b6885fc992ff4867a254771a1fa9a6084b
2020-09-10 14:54:34 +03:00
levlam
f05b8cec61 Update layer 119. Add sender_chat_id.
GitOrigin-RevId: ac837165b7bbd57631456291503e688339e04d03
2020-09-08 22:08:10 +03:00
levlam
0540ae7b60 Add min_date/max_date to searchMessages.
GitOrigin-RevId: a340969e431dd2de018461f3904da6569a91b166
2020-09-08 14:58:02 +03:00
levlam
1a6ca88777 Support search within message thread.
GitOrigin-RevId: 8ea2ac97000527d743b5a983eed57c3dd206b76c
2020-09-08 14:17:56 +03:00
levlam
3aee352751 Add MessageReplyInfo.{cpp,h}.
GitOrigin-RevId: 0f5b18fdbaac549d4c5a963b067056824d373c4e
2020-09-07 14:07:40 +03:00
levlam
ed782145bf Add reply_count and recent_replier_user_ids to MessageIntercationInfo.
GitOrigin-RevId: 48bae463c091d3d29e3096ebb4c2fbbbeda38dfd
2020-08-31 13:42:27 +03:00
levlam
b90e1bbeaf Update layer to 119.
GitOrigin-RevId: fdec9a689414746baf67cc15ec279e2516c2765a
2020-08-30 22:12:43 +03:00
levlam
dd722844bd Early conversion to MessageSearchFilter.
GitOrigin-RevId: c74a75329a873842ee30ce45515a05024da26153
2020-08-22 10:48:36 +03:00
levlam
46f42d80b6 Move MessageSearchFilter to separate files.
GitOrigin-RevId: 07b7df009b4e74a145b5ebc1966190630545baef
2020-08-22 10:27:13 +03:00
levlam
7d6546b27a Rename SearchMessagesFilter to MessageSearchFilter.
GitOrigin-RevId: ac477d22eae9382c6e9d63e184f10490c1bf4292
2020-08-22 10:05:51 +03:00
levlam
fcd1cda312 Add filter support to searchMessages.
GitOrigin-RevId: 571b0ee894296c1e8c947939f7098a1566731461
2020-08-21 17:40:05 +03:00
levlam
ca3d263c25 Add total_count to FoundMessages.
GitOrigin-RevId: ade2685b5d19dfb5cf31d4e952074879393915ee
2020-08-21 15:08:47 +03:00
levlam
f9c0ddae06 Add getMessagePublicForwards method.
GitOrigin-RevId: a0b16c241bcf3276c245423f7fff3f41751883b6
2020-08-21 14:47:43 +03:00
levlam
605e0844fb Use string new_offset in FoundMessages.
GitOrigin-RevId: b0d013e7d2513cc39f1c07013c837e6adb7e924a
2020-08-18 15:10:03 +03:00
levlam
a9fa751689 Automatically update forward count wnen receiving a forwarded message.
GitOrigin-RevId: a33ceb0a90cea9de89ec84c6d98c39078f3b115b
2020-08-01 05:54:39 +03:00
levlam
53ca6e4f4a Add td_api::getMessageStatistics.
GitOrigin-RevId: f5d32ef829b91aa1fea59ea88b665fe39d32642c
2020-08-01 05:19:54 +03:00
levlam
23b3eb4931 Update layer to 118. Support message forward count.
GitOrigin-RevId: 10f59fede8b4a86c871949fc721fedd1d615c4bf
2020-07-31 05:50:11 +03:00
levlam
54cd0a9830 Remove unused YieldType::Ttl.
GitOrigin-RevId: 6a079309e0ffc624379d6bd523c34a8f98e6bb17
2020-08-27 01:52:59 +03:00
levlam
29b44b28d4 Copy message view count if message is forwarded not to a channel.
GitOrigin-RevId: f0c555b1123841eb1af84e16b183349712af69d2
2020-08-20 00:00:42 +03:00
levlam
de8d92bead Add MessagesManager::set_dialog_unread_mention_count.
GitOrigin-RevId: 3f4874fd25886c502f69a187426730c1b9a0c90b
2020-08-10 09:19:08 +03:00
levlam
16c02c6b25 Rename sendMessageOptions to messageSendOptions.
GitOrigin-RevId: 70270e56ad61e21ad22f207adce6c27c2873f374
2020-08-09 15:14:30 +03:00
levlam
a404948707 Add MessageCopyOptions.
GitOrigin-RevId: a61b93c3c215c42c9a7f30195cc637187472751e
2020-08-09 14:18:08 +03:00
levlam
b1adbcba05 Suppress warning about changed chat order when last message is not saved to database.
GitOrigin-RevId: 23ee4bc68a3070fc3b9ed8edd24ece13a81a9a8a
2020-08-08 23:00:51 +03:00
levlam
6bc45e1c2e Save empty pinned chats list after it is received first time.
GitOrigin-RevId: 32559feeaa60e4d30387b3227a8990b625944137
2020-08-02 03:56:45 +03:00
levlam
c1c431e969 Add distance to chatActionBarReportAddBlock.
GitOrigin-RevId: 35d4e7228ab9aec2911cc15556c92e47ac974bc6
2020-07-10 12:44:02 +03:00
levlam
d1e4c1dbc4 Add can_unarchive flag to chatActionBar.
GitOrigin-RevId: 9eaf7172e83c668677bed40206b27f4e93e13451
2020-07-09 23:14:41 +03:00
levlam
6476e05d1e Change input photo type to InputChatPhoto in setChatPhoto.
GitOrigin-RevId: fae612a07ffdf71f393ffea7951a76808b90f7b3
2020-07-08 19:40:23 +03:00
levlam
4f005e3356 Add MessagesManager::get_input_peer_force for offset_peer.
GitOrigin-RevId: 45ec6bb84f679c2b843f7487105069c3aa64341f
2020-06-20 03:45:25 +03:00
levlam
71ec8cc655 Send updateChatFilters for empty list of chat filters after logging in.
GitOrigin-RevId: 18176b0c9bd08a1552189bb35eb46a982a33732d
2020-06-08 01:22:59 +03:00
levlam
eb9efdcba1 Fix edit_dialog_filter.
GitOrigin-RevId: 43043c6b0e054341d6c7c69e9c0dff7440224801
2020-06-07 23:59:16 +03:00
levlam
41d3a4dc33 Add disable_get_dialog_filter_ and more checks that bots doesn't use filters.
GitOrigin-RevId: a9806876ab714ea145dc0ddfd37270ca24e474ac
2020-06-07 23:45:11 +03:00
levlam
0b46b93bc8 Add MessagesManager::do_update_list_last_dialog_date.
GitOrigin-RevId: 337bcc66893ef8c47224d77d5ab54d841936c836
2020-06-07 23:22:33 +03:00
levlam
135be34b0f Add MessagesManager::do_update_list_last_pinned_dialog_date.
GitOrigin-RevId: 9059bce326b65d2b7d5b260fdb7fcb52918ba072
2020-06-07 23:07:46 +03:00
levlam
1e53b71532 Better createChatFilter/editChatFilter return type.
GitOrigin-RevId: 7c9d51add4bc3e2e7bfd92483b2daad83209503b
2020-06-07 22:16:30 +03:00
levlam
e14601e878 Process errors for dialog list loading.
GitOrigin-RevId: ecd7b6fe7f0686c1c98aa6896e86b9de5c8baee1
2020-06-05 07:21:02 +03:00
levlam
c3ede7ac23 Update mute_until in update_dialog_unmute_timeout.
GitOrigin-RevId: 37b978f0ab78ce5495cbf854fa0f796fbf453448
2020-06-05 04:05:43 +03:00
levlam
7fe9f1ca62 Update lists of received from server dialog only after it is fully updated.
GitOrigin-RevId: c426df9e04100d04557429e8eb3fb14ba897cf7a
2020-06-04 15:31:29 +03:00
levlam
36b8ab4d1d Fix MessagesManager initialization after authorization.
GitOrigin-RevId: bf9c4068876e778316218997c41392228633ab7d
2020-06-04 02:02:17 +03:00
levlam
7680ccf967 Do not reload dialog filters before authorization.
GitOrigin-RevId: c76d4e0a87a24c41a82d288534b4c3c201bf963b
2020-06-03 19:21:59 +03:00
levlam
1e6a2faecb Change scope mute_until in update_scope_unmute_timeout.
GitOrigin-RevId: 646066978d7bf5f4b2ee98f7e8d84f670e6bfa1f
2020-06-02 20:31:33 +03:00
levlam
3e3409ee9b Add schedule_scope_unmute.
GitOrigin-RevId: 4518854ffdc7e3d5dc0e7d74343ded9390d61dff
2020-06-02 20:21:56 +03:00
levlam
a0cb4aa260 Add schedule_dialog_unmute.
GitOrigin-RevId: 05fd1e8bbfc08f5a27217085050b3a0ec14a191e
2020-06-02 20:02:25 +03:00
levlam
25f77585c9 Move DialogFilter implementation to separate files.
GitOrigin-RevId: c58b7f42811242882f00d48152417826e465b5bc
2020-06-02 13:58:53 +03:00
levlam
492c18523f Move check_dialog_filter_limits inside DialogFilter.
GitOrigin-RevId: f4daa38456c378856a3ba3c87ce841aa0b9154c2
2020-06-02 04:26:40 +03:00
levlam
f234440d3d Improve method names.
GitOrigin-RevId: 34ec6eb1d3f3db02b946e147673a64c269c49132
2020-06-01 23:09:35 +03:00
levlam
01b319f22b Add recommended filters at the beginning of the list.
GitOrigin-RevId: 850744bddec52d19952a599b3ac9a8fca4667bf9
2020-06-01 18:05:32 +03:00
levlam
2098d08244 Add td_api::getChatListsToAddChat.
GitOrigin-RevId: 2765a827af72de72fd0faae815a51ba8c9f59459
2020-05-31 03:50:52 +03:00
levlam
8aa8774dc7 Move get_chat_list_object to DialogListId.
GitOrigin-RevId: ba28ac3e722f3308ca3a8c20419b6d9a8642d6cc
2020-05-31 02:59:50 +03:00
levlam
5477233af9 Replace setChatChatList with addChatToList.
GitOrigin-RevId: c336e0e98b008b1571c4267d466b8cb0f3306957
2020-05-31 00:48:33 +03:00
levlam
42b2e84e4a Save changed dialog total count even if the sum is still the same.
GitOrigin-RevId: 7a3027bc5defba37c089368c71cfdc7e009a440e
2020-05-29 09:08:01 +03:00
levlam
3033f31525 Fix dialog total count and filter folder ids.
GitOrigin-RevId: dd645555834c675ab2454889d56b337d34aaf38b
2020-05-29 08:48:38 +03:00
levlam
7dc2d13afe Make set_dialog_is_pinned private.
GitOrigin-RevId: 3ef6116d16897b28997e7fa91c1d496fce4edee2
2020-05-29 06:57:55 +03:00
levlam
876c67d711 Fix updating is_pinned when receiving Dialog.
GitOrigin-RevId: 276719cb66e06d226146b09dfdc5b2cd588f989e
2020-05-29 06:07:51 +03:00
levlam
62a87ba179 Add need_send_update_chat_position.
GitOrigin-RevId: bbca8e3ee7fb5df8c08b5ae89683cc7cfbbea482
2020-05-29 03:16:56 +03:00
levlam
15b3907b37 More dialog list fixes.
GitOrigin-RevId: e6889e33454e41e14af7b2b64ccff06e8225f2a8
2020-05-29 01:58:24 +03:00
levlam
cef4c3af2f Add MessagesManager::get_dialog_filter_ids.
GitOrigin-RevId: fb70aca2c233efe1ec873a707e3418e9ac39a401
2020-05-28 21:29:38 +03:00
levlam
7ec366b7f7 Reorder dialog filters in synchronize_dialog_filters.
GitOrigin-RevId: 175efa63aa4a88ce2be5926f6715b7760049e149
2020-05-28 15:50:54 +03:00
levlam
a5abc75b20 Add synchronize_dialog_filters method.
GitOrigin-RevId: 41489bb32c0d6800db3b356d67dc1412ae6b89ed
2020-05-28 15:10:31 +03:00
levlam
260ac6c90e Add need_synchronize_dialog_filters.
GitOrigin-RevId: e108099952a97aaa7b2963e15fff0123e1e3cbda
2020-05-28 14:34:02 +03:00
levlam
e5f0902277 Do not reload filters in parallel.
GitOrigin-RevId: 8542d74bd773a58904834a0aea89de41ee470869
2020-05-28 12:38:46 +03:00
levlam
25badecb71 Use send_closure_later in reload_dialog_filters to avoid accidental Timeout usage.
GitOrigin-RevId: 9d3f29b0d6dac7c1834426c9e07885cbf6cd0bb9
2020-05-28 12:14:58 +03:00
levlam
10402d9f5b Add get_dialog_filters_cache_time.
GitOrigin-RevId: a5779bb5d0a90c7a77f44df91300aedd6a562988
2020-05-28 12:05:40 +03:00
levlam
09f8c68e04 Add set_dialog_filters_order method.
GitOrigin-RevId: 4c8517abc9e7a968244ec5790367b5299818c2cf
2020-05-28 02:43:23 +03:00
levlam
8bd1debf87 Add delete_dialog_filter_on_server.
GitOrigin-RevId: 4e08271a6eacb41cae9aea9e7d09cc5d47cae78e
2020-05-28 02:11:41 +03:00
levlam
0f93d0fd56 Add update_dialog_filter_on_server function.
GitOrigin-RevId: 35d57215c3cbae2f48a6398541a71583ffb9f33a
2020-05-28 02:07:00 +03:00
levlam
d2ff28f269 Add add_dialog_to_list/remove_dialog_from_list methods.
GitOrigin-RevId: 838e90a5143e310966ff2caf4343b236f97c0d25
2020-05-28 01:15:34 +03:00
levlam
dcaa9f3fba Allow to call update_list_last_dialog_date without sending updates.
GitOrigin-RevId: 82db046228cbfb5d1d78d20be8050896547eca77
2020-05-27 23:40:03 +03:00
levlam
22f158ac1f Make get_dialog_pinned_order static.
GitOrigin-RevId: 40e4b29573044b9d5f4fbdf75610eef4eab73421
2020-05-27 23:35:35 +03:00
levlam
d687f0b3fe Sort dialogs in DialogFilter.
GitOrigin-RevId: d12a0d5274592ec3ada5fe5da2c2c172a7402847
2020-05-27 17:44:13 +03:00
levlam
155c933696 Add MessagesManager::check_dialog_filter_limits.
GitOrigin-RevId: 15b11ca0986b4250d02d28637702cb9baba46af4
2020-05-27 03:04:35 +03:00
levlam
2a1c95e63c Add MessagesManager::get_input_dialog_id.
GitOrigin-RevId: f1e4d607f05050c4ec81dc535869a074bdf10ada
2020-05-27 02:29:40 +03:00
levlam
fe78d07130 Improve variable names.
GitOrigin-RevId: 3573d1f8143a75de8148cda0834d792bc1d68d3c
2020-05-26 17:41:35 +03:00
levlam
e3dc7198c5 Add need_dialog_in_filter.
GitOrigin-RevId: 1a9d7bd58e7d660ac148643ed0cd06df7d35b2a3
2020-05-26 16:21:26 +03:00
levlam
d053d46b26 Add get_dialog_filter_folder_ids.
GitOrigin-RevId: fac4106be470b24a273d75bd3564ae7d9740207a
2020-05-26 16:05:59 +03:00
levlam
2dba239367 Pass DialogList to send_update_unread_*_count.
GitOrigin-RevId: 92160cf544151a465b767088498bef694a927193
2020-05-26 01:58:06 +03:00
levlam
055ab9dc1b Add update_list_last_pinned_dialog_date.
GitOrigin-RevId: a60f17f5cb192caeecbeb9525f0455381066aee6
2020-05-26 00:47:26 +03:00
levlam
76fd42ac12 Add separate save_dialog_filters.
GitOrigin-RevId: d624510ea25882c204a31088d85344f0e80f4d8c
2020-05-25 23:52:43 +03:00
levlam
d85dd48101 Store server dialog filters separately.
GitOrigin-RevId: 30c0da52c254008ab17e3be0b6707cd0678a87ec
2020-05-25 22:31:12 +03:00
levlam
96db150b4b Do not try to save unread count just after loading.
GitOrigin-RevId: 63ac7ebd4f04f3705fec95a9c394eb70b238dc57
2020-05-22 19:20:50 +03:00
levlam
400959989b Fix first chat loading.
GitOrigin-RevId: 606bbb51a4ef9f49bc94ed869c7a901a3b238f58
2020-05-22 18:26:30 +03:00
levlam
090ef866bd Add DialogListId.
GitOrigin-RevId: e3dd3fb5065e18d087d733e1f537e92119e6f234
2020-05-21 19:39:34 +03:00
levlam
563d6e893c Split DialogList to DialogList and DialogFolder.
GitOrigin-RevId: 2eeae3f758674ee36e6a5b98e5b2110e1ea98f73
2020-05-21 04:40:04 +03:00
levlam
0ea6ebd1e4 Add MessagesManager::get_dialog_list_folder_ids.
GitOrigin-RevId: 9f32a65eebec47964f9222a4bb5fd0e1221c492f
2020-05-21 03:48:54 +03:00
levlam
b1a6bf42eb Load dialog list in all folders of the list.
GitOrigin-RevId: aa89d31dcae77b6e43a2b025471034a586fbf4e3
2020-05-21 03:39:45 +03:00
levlam
f093539db9 Add is_dialog_in_list.
GitOrigin-RevId: 502234e37450e97184811f05d0d86dcd5b7780be
2020-05-20 03:10:30 +03:00
levlam
4835bebc3c Separate last_dialog_date to list_last_dialog_date and folder_last_dialog_date.
GitOrigin-RevId: 46b3cd269a98aac677a4c4b6b504bac6cf435aef
2020-05-20 03:04:52 +03:00
levlam
1eb7663769 Add limit on chat filter length.
GitOrigin-RevId: 33e627f9792acc429500dd3bdecce6fb4c50e4c4
2020-05-19 14:30:25 +03:00
levlam
ffb9dd2c6c Add chat_list to toggleChatIsPinned.
GitOrigin-RevId: ffc8a124677f22f8367009e006a4f1ad17953f22
2020-05-19 04:21:50 +03:00
levlam
a8e570fd65 Add td_api::getRecommendedChatFilters.
GitOrigin-RevId: d5f56357448c9f13154b5dead09cbd73ecf01e90
2020-05-19 04:03:15 +03:00
levlam
0d520e25be Add private load_dialog_filter.
GitOrigin-RevId: 9bdee3788d0bbe1c8cce1624df4945b1fcec3b3a
2020-05-19 03:02:05 +03:00
levlam
7fccd7ba7c Add td_api::reorderChatFilters.
GitOrigin-RevId: 33fe529db5e96b6dfc15fc86b1b635fb412091b2
2020-05-19 02:41:07 +03:00
levlam
d2b53fc023 Add td_api::deleteChatFilter.
GitOrigin-RevId: ceb3700d72271c6b570d258f6cf5e46f50d80b07
2020-05-19 01:06:24 +03:00
levlam
49ccb05176 Add td_api::editChatFilter.
GitOrigin-RevId: 51af78e8079dbb89421cdfbd81d4e37b10d95f03
2020-05-19 00:47:34 +03:00
levlam
cc77e7e9ca Add td_api::createChatFilter.
GitOrigin-RevId: 4c3fa89cae21b1db3643cfe7640d8ef1043b99f9
2020-05-18 22:26:44 +03:00
levlam
5959333499 Add td_api::getChatFilter.
GitOrigin-RevId: 024ec630489928bd30fcba6c0c809d4970b66b6c
2020-05-18 02:29:28 +03:00
levlam
d3ed675cc2 Always return pointer from get_dialog_list.
GitOrigin-RevId: 4b16c99a9704189821e528aeb4f088b2789015c8
2020-05-15 16:32:07 +03:00
levlam
0e5b939a73 Support telegram_api::updateDialogFilters.
GitOrigin-RevId: 0a3ada4fa00079a120d358b0abaf413bbb88466d
2020-05-15 01:44:52 +03:00
levlam
2bbbfd684d Add updateChatFilters.
GitOrigin-RevId: 6dcc138d5d83dfcf7a6c0ec4108ea2c516f8caf6
2020-05-15 01:39:28 +03:00
levlam
eb07452aaa Add InputDialogId.
GitOrigin-RevId: 0fbfdb383b13c5398c8f98e7315837c892db258a
2020-05-12 15:52:10 +03:00