Upstream merge: createNewSupergroupChat needs an extra bool for imported chats

This commit is contained in:
Giuseppe Marino 2021-03-16 20:27:04 +01:00
parent 33877f740d
commit d73fb848cd
No known key found for this signature in database
GPG Key ID: 2BC70C5463357449

View File

@ -8508,10 +8508,10 @@ td::Status Client::process_create_chat_query(PromisedQueryPtr &query) {
auto description = query->arg("description"); auto description = query->arg("description");
if (chat_type == "supergroup") { if (chat_type == "supergroup") {
send_request(make_object<td_api::createNewSupergroupChat>(title.str(), false, description.str(), nullptr), send_request(make_object<td_api::createNewSupergroupChat>(title.str(), false, description.str(), nullptr, false),
std::make_unique<TdOnReturnChatCallback>(this, std::move(query))); std::make_unique<TdOnReturnChatCallback>(this, std::move(query)));
} else if (chat_type == "channel") { } else if (chat_type == "channel") {
send_request(make_object<td_api::createNewSupergroupChat>(title.str(), true, description.str(), nullptr), send_request(make_object<td_api::createNewSupergroupChat>(title.str(), true, description.str(), nullptr, false),
std::make_unique<TdOnReturnChatCallback>(this, std::move(query))); std::make_unique<TdOnReturnChatCallback>(this, std::move(query)));
} else if (chat_type == "group") { } else if (chat_type == "group") {
TRY_RESULT(initial_members, get_int_array_arg<td::int32>(query.get(), "user_ids")) TRY_RESULT(initial_members, get_int_array_arg<td::int32>(query.get(), "user_ids"))