diff options
| author | levlam <levlam@telegram.org> | 2026-07-10 00:11:39 +0300 |
|---|---|---|
| committer | levlam <levlam@telegram.org> | 2026-07-10 00:11:39 +0300 |
| commit | 575e5f8fb06010227c3ffe3bf1c69dfda1c739da (patch) | |
| tree | 2018916b575b2aa064114fed8a871ce2a7226a23 /td/telegram/CommunityManager.cpp | |
| parent | a83a851fe42c393cd34ffd8fcb9ef9ebe3e7db0c (diff) | |
Add community.permissions.
Diffstat (limited to 'td/telegram/CommunityManager.cpp')
| -rw-r--r-- | td/telegram/CommunityManager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/td/telegram/CommunityManager.cpp b/td/telegram/CommunityManager.cpp index ba601b9a1..1eaf09c4c 100644 --- a/td/telegram/CommunityManager.cpp +++ b/td/telegram/CommunityManager.cpp @@ -582,7 +582,7 @@ td_api::object_ptr<td_api::community> CommunityManager::get_community_object(Com } return td_api::make_object<td_api::community>(community_id.get(), c->access_hash != 0, c->title, get_chat_photo_info_object(td_->file_manager_.get(), &c->photo), - c->date); + c->date, c->default_permissions.get_community_permissions_object()); } td_api::object_ptr<td_api::updateCommunity> CommunityManager::get_update_community_object(CommunityId community_id, @@ -596,7 +596,8 @@ td_api::object_ptr<td_api::updateCommunity> CommunityManager::get_update_communi td_api::object_ptr<td_api::updateCommunity> CommunityManager::get_update_unknown_community_object( CommunityId community_id) const { return td_api::make_object<td_api::updateCommunity>( - td_api::make_object<td_api::community>(community_id.get(), false, string(), nullptr, 0)); + td_api::make_object<td_api::community>(community_id.get(), false, string(), nullptr, 0, + RestrictedRights::restrict_all().get_community_permissions_object())); } void CommunityManager::get_current_state(vector<td_api::object_ptr<td_api::Update>> &updates) const { |
