Add private load_dialog_filter.
GitOrigin-RevId: 9bdee3788d0bbe1c8cce1624df4945b1fcec3b3a
This commit is contained in:
parent
7fccd7ba7c
commit
0d520e25be
@ -13710,6 +13710,10 @@ void MessagesManager::load_dialog_filter(DialogFilterId dialog_filter_id, bool f
|
|||||||
return promise.set_value(Unit());
|
return promise.set_value(Unit());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
load_dialog_filter(filter, force, std::move(promise));
|
||||||
|
}
|
||||||
|
|
||||||
|
void MessagesManager::load_dialog_filter(const DialogFilter *filter, bool force, Promise<Unit> &&promise) {
|
||||||
vector<InputDialogId> needed_dialog_ids;
|
vector<InputDialogId> needed_dialog_ids;
|
||||||
for (auto input_dialog_ids :
|
for (auto input_dialog_ids :
|
||||||
{&filter->pinned_dialog_ids, &filter->excluded_dialog_ids, &filter->included_dialog_ids}) {
|
{&filter->pinned_dialog_ids, &filter->excluded_dialog_ids, &filter->included_dialog_ids}) {
|
||||||
|
@ -2211,6 +2211,8 @@ class MessagesManager : public Actor {
|
|||||||
void update_dialogs_hints(const Dialog *d);
|
void update_dialogs_hints(const Dialog *d);
|
||||||
void update_dialogs_hints_rating(const Dialog *d);
|
void update_dialogs_hints_rating(const Dialog *d);
|
||||||
|
|
||||||
|
void load_dialog_filter(const DialogFilter *filter, bool force, Promise<Unit> &&promise);
|
||||||
|
|
||||||
Result<unique_ptr<DialogFilter>> create_dialog_filter(DialogFilterId dialog_filter_id,
|
Result<unique_ptr<DialogFilter>> create_dialog_filter(DialogFilterId dialog_filter_id,
|
||||||
td_api::object_ptr<td_api::chatFilter> filter);
|
td_api::object_ptr<td_api::chatFilter> filter);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user