Add chatFolderInfo.is_shareable.
This commit is contained in:
parent
1f8129e94f
commit
1b891ddc7b
@ -1342,8 +1342,9 @@ chatFolder title:string icon:chatFolderIcon is_shareable:Bool pinned_chat_ids:ve
|
||||
//@id Unique chat folder identifier
|
||||
//@title The title of the folder; 1-12 characters without line feeds
|
||||
//@icon The chosen or default icon for the chat folder
|
||||
//@is_shareable True, if at least one link has been created for the folder
|
||||
//@has_my_invite_links True, if the chat folder has invite links created by the current user
|
||||
chatFolderInfo id:int32 title:string icon:chatFolderIcon has_my_invite_links:Bool = ChatFolderInfo;
|
||||
chatFolderInfo id:int32 title:string icon:chatFolderIcon is_shareable:Bool has_my_invite_links:Bool = ChatFolderInfo;
|
||||
|
||||
//@description Contains a chat folder invite link
|
||||
//@invite_link The chat folder invite link
|
||||
|
@ -485,7 +485,7 @@ td_api::object_ptr<td_api::chatFolder> DialogFilter::get_chat_folder_object(
|
||||
td_api::object_ptr<td_api::chatFolderInfo> DialogFilter::get_chat_folder_info_object() const {
|
||||
return td_api::make_object<td_api::chatFolderInfo>(
|
||||
dialog_filter_id_.get(), title_, td_api::make_object<td_api::chatFolderIcon>(get_chosen_or_default_icon_name()),
|
||||
has_my_invites_);
|
||||
is_shareable_, has_my_invites_);
|
||||
}
|
||||
|
||||
void DialogFilter::for_each_dialog(std::function<void(const InputDialogId &)> callback) const {
|
||||
|
@ -2002,8 +2002,8 @@ void DialogFilterManager::on_get_chatlist_invite(
|
||||
if (icon_name.empty()) {
|
||||
icon_name = "Custom";
|
||||
}
|
||||
info = td_api::make_object<td_api::chatFolderInfo>(0, invite->title_,
|
||||
td_api::make_object<td_api::chatFolderIcon>(icon_name), false);
|
||||
info = td_api::make_object<td_api::chatFolderInfo>(
|
||||
0, invite->title_, td_api::make_object<td_api::chatFolderIcon>(icon_name), true, false);
|
||||
missing_peers = std::move(invite->peers_);
|
||||
chats = std::move(invite->chats_);
|
||||
users = std::move(invite->users_);
|
||||
|
Loading…
Reference in New Issue
Block a user