Commit Graph

4248 Commits

Author SHA1 Message Date
levlam
26812a77f6 Add InputDialogId::are_equivalent.
GitOrigin-RevId: db383a715d619cb504bb8baa906bf1eae00e5e4d
2020-05-28 03:29:12 +03:00
levlam
f80bd321b0 Immediately return response to create/editChatFilter.
GitOrigin-RevId: 79e81c4baa497a2ebabb740a1efb33d044d5d65d
2020-05-28 03:11:34 +03:00
levlam
9a5f6c5dd5 Update dialog filter order after receiving them from server.
GitOrigin-RevId: 9ef943eb5faaf36cfe960e91a6daba6d5804a57d
2020-05-28 03:08:00 +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
77d9f547a3 Add update_dialog_filter_on_server.
GitOrigin-RevId: 699ae56d8c6d582f95c502fa75d0802c8385b8ef
2020-05-28 02:08:56 +03:00
levlam
0f93d0fd56 Add update_dialog_filter_on_server function.
GitOrigin-RevId: 35d57215c3cbae2f48a6398541a71583ffb9f33a
2020-05-28 02:07:00 +03:00
levlam
97a89986a1 Update DialogList in edit_dialog_filter.
GitOrigin-RevId: 93466cbb49e643ca0a0daabbd212fbed22d5e744
2020-05-28 01:57:36 +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
4ace9f4c02 Disallow creation of an empty folder and a copy of the main chat list.
GitOrigin-RevId: 4a76401374821085fca0776ecabefd4fcc6f057f
2020-05-27 20:52:59 +03:00
levlam
7ae25bc255 Check that there is no duplicate chats in dialog filters.
GitOrigin-RevId: 5a12837a0d34a09a228efe62b6ed9593bb1c7124
2020-05-27 17:58:54 +03:00
levlam
d687f0b3fe Sort dialogs in DialogFilter.
GitOrigin-RevId: d12a0d5274592ec3ada5fe5da2c2c172a7402847
2020-05-27 17:44:13 +03:00
levlam
21e0ab428b Support dialog filters in toggle_dialog_is_pinned.
GitOrigin-RevId: c1fd8eb6c226dc61aefb82a360659d9abb2aeccc
2020-05-27 03:40:30 +03:00
levlam
a615d9e8ad Support folders in set_pinned_dialogs.
GitOrigin-RevId: 064ce6d983fa9eb9c2b5d0203d17af3b7c7ae444
2020-05-27 03:21:24 +03:00
levlam
f9a02d079c Better get_pinned_dialogs_limit behavior for filters.
GitOrigin-RevId: 06926e2b6e6a25e728d64e19a8f33ed9e961106b
2020-05-27 03:05:41 +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
720da27018 Remove secret chats from UpdateDialogFilterQuery before sending it to UpdateDialogFilterQuery.
GitOrigin-RevId: 53d6c31e9f9df932272be2d97448f0953c692123
2020-05-26 19:02:17 +03:00
levlam
9e930dd886 Add InputDialogId::get_dialog_ids.
GitOrigin-RevId: 78d1b25d3370b8c8b87927f953d9c62722a8a547
2020-05-26 18:30:22 +03:00
levlam
bb590be64d Minor improvements.
GitOrigin-RevId: 65206b275680b4b2da5f52c6427643d35e91dec9
2020-05-26 18:14:43 +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
5e834b4277 Separately limit included server and secret chats in filters.
GitOrigin-RevId: cafa4921181252f31ee2e9d7fd2395016b48c4ca
2020-05-26 15:26:11 +03:00
levlam
ae1db34f44 Minor improvements.
GitOrigin-RevId: 788f6c7cf686489fd54ba20b12a9f670e7b4d04f
2020-05-26 02:46:22 +03:00
levlam
2dba239367 Pass DialogList to send_update_unread_*_count.
GitOrigin-RevId: 92160cf544151a465b767088498bef694a927193
2020-05-26 01:58:06 +03:00
levlam
fa3c14a121 Minor improvements.
GitOrigin-RevId: b1edea4f5326e0cefe3966415c7451afa95255d8
2020-05-26 01:50:56 +03:00
levlam
f0aaa7e81a Init pinned dialog ids in MessagesManager::add_dialog_filter.
GitOrigin-RevId: bc93ef811a5674db23900a541b2a57ca17c855fa
2020-05-26 01:41:30 +03:00
levlam
7f1212daab Delete dialog list in MessagesManager::delete_dialog_filter.
GitOrigin-RevId: 03683ac4cc2d5f545a7b433607861bdae7221179
2020-05-26 01:34:15 +03:00
levlam
ff6cb65a74 Add dialog_list in add_dialog_filter.
GitOrigin-RevId: b5984c15e0577168e88198071300a803e5d1580e
2020-05-26 01:07:30 +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
8bb76ff0e9 Simplify MessagesManager::DialogFiltersLogEvent.
GitOrigin-RevId: c2d6c80012e6ff7c401f00c7c9b53c12b6765431
2020-05-25 12:34:41 +03:00
levlam
139a7da664 Use new store/parse for vector.
GitOrigin-RevId: 8ac8567515d1c994deb11be75d4a299679c46ac3
2020-05-25 02:48:57 +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
17c68176c5 Fix moving dialog between folders.
GitOrigin-RevId: 427e3cd0738420ce68f1ed30b54693bced5b9877
2020-05-22 19:11:03 +03:00
levlam
400959989b Fix first chat loading.
GitOrigin-RevId: 606bbb51a4ef9f49bc94ed869c7a901a3b238f58
2020-05-22 18:26:30 +03:00
levlam
a619ff4b87 Call update_dialog_lists when a dialog can move in or out filter list.
GitOrigin-RevId: 58af40a3a37797c1b9f84c7db4a1dba20fda513f
2020-05-22 03:09:37 +03:00
levlam
0edc0721ef Add td_api::chatListFilter.
GitOrigin-RevId: 4682d96fbaa160f1af9213d65c99c67de4d1764e
2020-05-22 01:19:28 +03:00
levlam
f96714b254 Use get_dialog_list_folder_ids.
GitOrigin-RevId: c2685f208b329c1fadb4c4fc467b432edff95a86
2020-05-21 20:07:37 +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
e8e81923ac Merge dialogs from all dialog list folders.
GitOrigin-RevId: d0477a27aeb1d18b289c0979a1eb5f37c5f7f826
2020-05-21 04:15:27 +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
052f65d8ca Traverse all needed folders when recalculating unread count.
GitOrigin-RevId: e7ad1caa32359e36d509f7137ed964e6b69d415e
2020-05-21 02:18:13 +03:00
levlam
f093539db9 Add is_dialog_in_list.
GitOrigin-RevId: 502234e37450e97184811f05d0d86dcd5b7780be
2020-05-20 03:10:30 +03:00