mirror of
https://gitlab.com/comunic/comunicapiv3
synced 2024-12-27 05:58:51 +00:00
Add missing information to conversations
This commit is contained in:
parent
16ba9486f7
commit
a7b3329226
@ -25,6 +25,7 @@ pub struct ConversationAPI {
|
||||
color: Option<String>,
|
||||
logo: Option<String>,
|
||||
group_id: Option<u64>,
|
||||
group_min_membership_level: Option<String>,
|
||||
members: Vec<ConversationMembersAPI>,
|
||||
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),
|
||||
|
Loading…
Reference in New Issue
Block a user