Remove separate td_api::hideChatFolderNewChats.
This commit is contained in:
parent
9ebadf508c
commit
19502cbe15
@ -6875,11 +6875,8 @@ addChatFolderByInviteLink invite_link:string chat_ids:vector<int53> = Ok;
|
|||||||
//@description Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder @chat_folder_id Chat folder identifier
|
//@description Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder @chat_folder_id Chat folder identifier
|
||||||
getChatFolderNewChats chat_folder_id:int32 = Chats;
|
getChatFolderNewChats chat_folder_id:int32 = Chats;
|
||||||
|
|
||||||
//@description Adds new chats added to a shareable chat folder by its owner to the user's chat folder @chat_folder_id Chat folder identifier @chat_ids Identifiers of the new chats added to the chat folder. The chats are automatically joined if they aren't joined yet
|
//@description Process new chats added to a shareable chat folder by its owner @chat_folder_id Chat folder identifier @added_chat_ids Identifiers of the new chats, which are added to the chat folder. The chats are automatically joined if they aren't joined yet
|
||||||
addChatFolderNewChats chat_folder_id:int32 chat_ids:vector<int53> = Ok;
|
processChatFolderNewChats chat_folder_id:int32 added_chat_ids:vector<int53> = Ok;
|
||||||
|
|
||||||
//@description Hides new chats added to a shareable chat folder by its owner, so they aren't received next time @chat_folder_id Chat folder identifier
|
|
||||||
hideChatFolderNewChats chat_folder_id:int32 = Ok;
|
|
||||||
|
|
||||||
|
|
||||||
//@description Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right
|
//@description Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right
|
||||||
|
@ -6204,17 +6204,15 @@ void Td::on_request(uint64 id, const td_api::getChatFolderNewChats &request) {
|
|||||||
dialog_filter_manager_->get_dialog_filter_new_chats(DialogFilterId(request.chat_folder_id_), std::move(promise));
|
dialog_filter_manager_->get_dialog_filter_new_chats(DialogFilterId(request.chat_folder_id_), std::move(promise));
|
||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, const td_api::addChatFolderNewChats &request) {
|
void Td::on_request(uint64 id, const td_api::processChatFolderNewChats &request) {
|
||||||
CHECK_IS_USER();
|
CHECK_IS_USER();
|
||||||
CREATE_OK_REQUEST_PROMISE();
|
CREATE_OK_REQUEST_PROMISE();
|
||||||
dialog_filter_manager_->add_dialog_filter_new_chats(DialogFilterId(request.chat_folder_id_),
|
if (request.added_chat_ids_.empty()) {
|
||||||
DialogId::get_dialog_ids(request.chat_ids_), std::move(promise));
|
dialog_filter_manager_->hide_dialog_filter_new_chats(DialogFilterId(request.chat_folder_id_), std::move(promise));
|
||||||
}
|
} else {
|
||||||
|
dialog_filter_manager_->add_dialog_filter_new_chats(
|
||||||
void Td::on_request(uint64 id, const td_api::hideChatFolderNewChats &request) {
|
DialogFilterId(request.chat_folder_id_), DialogId::get_dialog_ids(request.added_chat_ids_), std::move(promise));
|
||||||
CHECK_IS_USER();
|
}
|
||||||
CREATE_OK_REQUEST_PROMISE();
|
|
||||||
dialog_filter_manager_->hide_dialog_filter_new_chats(DialogFilterId(request.chat_folder_id_), std::move(promise));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Td::on_request(uint64 id, td_api::setChatTitle &request) {
|
void Td::on_request(uint64 id, td_api::setChatTitle &request) {
|
||||||
|
@ -943,9 +943,7 @@ class Td final : public Actor {
|
|||||||
|
|
||||||
void on_request(uint64 id, const td_api::getChatFolderNewChats &request);
|
void on_request(uint64 id, const td_api::getChatFolderNewChats &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::addChatFolderNewChats &request);
|
void on_request(uint64 id, const td_api::processChatFolderNewChats &request);
|
||||||
|
|
||||||
void on_request(uint64 id, const td_api::hideChatFolderNewChats &request);
|
|
||||||
|
|
||||||
void on_request(uint64 id, td_api::setChatTitle &request);
|
void on_request(uint64 id, td_api::setChatTitle &request);
|
||||||
|
|
||||||
|
@ -4685,15 +4685,11 @@ class CliClient final : public Actor {
|
|||||||
ChatFolderId chat_folder_id;
|
ChatFolderId chat_folder_id;
|
||||||
get_args(args, chat_folder_id);
|
get_args(args, chat_folder_id);
|
||||||
send_request(td_api::make_object<td_api::getChatFolderNewChats>(chat_folder_id));
|
send_request(td_api::make_object<td_api::getChatFolderNewChats>(chat_folder_id));
|
||||||
} else if (op == "acfnc") {
|
} else if (op == "pcfnc") {
|
||||||
ChatFolderId chat_folder_id;
|
ChatFolderId chat_folder_id;
|
||||||
string chat_ids;
|
string chat_ids;
|
||||||
get_args(args, chat_folder_id, chat_ids);
|
get_args(args, chat_folder_id, chat_ids);
|
||||||
send_request(td_api::make_object<td_api::addChatFolderNewChats>(chat_folder_id, as_chat_ids(chat_ids)));
|
send_request(td_api::make_object<td_api::processChatFolderNewChats>(chat_folder_id, as_chat_ids(chat_ids)));
|
||||||
} else if (op == "hcfnc") {
|
|
||||||
ChatFolderId chat_folder_id;
|
|
||||||
get_args(args, chat_folder_id);
|
|
||||||
send_request(td_api::make_object<td_api::hideChatFolderNewChats>(chat_folder_id));
|
|
||||||
} else if (op == "grcf") {
|
} else if (op == "grcf") {
|
||||||
send_request(td_api::make_object<td_api::getRecommendedChatFolders>());
|
send_request(td_api::make_object<td_api::getRecommendedChatFolders>());
|
||||||
} else if (op == "gcfdin") {
|
} else if (op == "gcfdin") {
|
||||||
|
Loading…
Reference in New Issue
Block a user