1
0
mirror of https://gitlab.com/comunic/comunicapiv3 synced 2024-11-22 21:39:21 +00:00

Return the members list public status

This commit is contained in:
Pierre HUBERT 2021-03-17 18:11:48 +01:00
parent 135131ada6
commit 3dea624e4a

View File

@ -15,6 +15,7 @@ pub struct AdvancedGroupApi {
#[serde(flatten)] #[serde(flatten)]
base_info: GroupApi, base_info: GroupApi,
is_members_list_public: bool,
time_create: u64, time_create: u64,
description: String, description: String,
url: String, url: String,
@ -27,6 +28,7 @@ impl AdvancedGroupApi {
pub fn new(g: &Group, user_id: Option<UserID>) -> ResultBoxError<AdvancedGroupApi> { pub fn new(g: &Group, user_id: Option<UserID>) -> ResultBoxError<AdvancedGroupApi> {
Ok(AdvancedGroupApi { Ok(AdvancedGroupApi {
base_info: GroupApi::new(g, user_id.clone())?, base_info: GroupApi::new(g, user_id.clone())?,
is_members_list_public: g.is_members_list_public,
time_create: g.time_create, time_create: g.time_create,
description: g.description.clone().unwrap_or("null".to_string()), description: g.description.clone().unwrap_or("null".to_string()),
url: g.url.clone().unwrap_or("null".to_string()), url: g.url.clone().unwrap_or("null".to_string()),