Commit Graph

526 Commits

Author SHA1 Message Date
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