Skip to content

Commit

Permalink
fix missing fields
Browse files Browse the repository at this point in the history
  • Loading branch information
mchenani committed Jan 7, 2025
1 parent 20978da commit 8dbd684
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions bindings_node/src/conversations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,15 @@ impl Conversations {
account_addresses: Vec<String>,
options: Option<CreateGroupOptions>,
) -> Result<Conversation> {
let options = match options {
Some(options) => options,
None => CreateGroupOptions {
permissions: None,
group_name: None,
group_image_url_square: None,
group_description: None,
group_pinned_frame_url: None,
custom_permission_policy_set: None,
},
};
let options = options.unwrap_or_else(|| CreateGroupOptions {
permissions: None,
group_name: None,
group_image_url_square: None,
group_description: None,
group_pinned_frame_url: None,
custom_permission_policy_set: None,
message_expiration_ms: None,
});

if let Some(GroupPermissionsOptions::CustomPolicy) = options.permissions {
if options.custom_permission_policy_set.is_none() {
Expand Down

0 comments on commit 8dbd684

Please sign in to comment.