From a7b332922665901d6d52adcb965bbf563a4bc2ba Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 5 Apr 2021 15:01:58 +0200 Subject: [PATCH] Add missing information to conversations --- src/api_data/conversation_api.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/api_data/conversation_api.rs b/src/api_data/conversation_api.rs index 8fb15f0..662a2b5 100644 --- a/src/api_data/conversation_api.rs +++ b/src/api_data/conversation_api.rs @@ -25,6 +25,7 @@ pub struct ConversationAPI { color: Option, logo: Option, group_id: Option, + group_min_membership_level: Option, members: Vec, can_everyone_add_members: bool, can_have_call: bool, @@ -55,7 +56,10 @@ impl ConversationAPI { can_everyone_add_members: conv.can_everyone_add_members, color: conv.color.clone(), logo: conv.logo.as_ref().map(|s| user_data_url(s)), + group_id: conv.group_id.as_ref().map(|i| i.id()), + group_min_membership_level: conv.min_group_membership_level.as_ref() + .map(|f| f.to_api()), can_have_call: calls_helper::can_have_call(conv), can_have_video_call: calls_helper::can_have_video_calls(conv),