mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-27 22:18:51 +00:00
Return the members list public status
This commit is contained in:
parent
135131ada6
commit
3dea624e4a
@ -15,6 +15,7 @@ pub struct AdvancedGroupApi {
|
||||
#[serde(flatten)]
|
||||
base_info: GroupApi,
|
||||
|
||||
is_members_list_public: bool,
|
||||
time_create: u64,
|
||||
description: String,
|
||||
url: String,
|
||||
@ -27,6 +28,7 @@ impl AdvancedGroupApi {
|
||||
pub fn new(g: &Group, user_id: Option<UserID>) -> ResultBoxError<AdvancedGroupApi> {
|
||||
Ok(AdvancedGroupApi {
|
||||
base_info: GroupApi::new(g, user_id.clone())?,
|
||||
is_members_list_public: g.is_members_list_public,
|
||||
time_create: g.time_create,
|
||||
description: g.description.clone().unwrap_or("null".to_string()),
|
||||
url: g.url.clone().unwrap_or("null".to_string()),
|
||||
|
Loading…
Reference in New Issue
Block a user