Immediately return response to create/editChatFilter.
GitOrigin-RevId: 79e81c4baa497a2ebabb740a1efb33d044d5d65d
This commit is contained in:
parent
9a5f6c5dd5
commit
f80bd321b0
@ -15438,7 +15438,8 @@ void MessagesManager::create_dialog_filter(td_api::object_ptr<td_api::chatFilter
|
||||
save_dialog_filters();
|
||||
send_update_chat_filters();
|
||||
|
||||
update_dialog_filter_on_server(std::move(dialog_filter), std::move(promise));
|
||||
update_dialog_filter_on_server(std::move(dialog_filter), Promise<Unit>());
|
||||
promise.set_value(Unit());
|
||||
}
|
||||
|
||||
void MessagesManager::edit_dialog_filter(DialogFilterId dialog_filter_id, td_api::object_ptr<td_api::chatFilter> filter,
|
||||
@ -15464,7 +15465,8 @@ void MessagesManager::edit_dialog_filter(DialogFilterId dialog_filter_id, td_api
|
||||
save_dialog_filters();
|
||||
send_update_chat_filters();
|
||||
|
||||
update_dialog_filter_on_server(std::move(new_dialog_filter), std::move(promise));
|
||||
update_dialog_filter_on_server(std::move(new_dialog_filter), Promise<Unit>());
|
||||
promise.set_value(Unit());
|
||||
}
|
||||
|
||||
void MessagesManager::update_dialog_filter_on_server(unique_ptr<DialogFilter> &&dialog_filter,
|
||||
|
Loading…
Reference in New Issue
Block a user