From 8dbd6842224c38367168c7d7a63529477f145502 Mon Sep 17 00:00:00 2001 From: Mojtaba Chenani Date: Tue, 7 Jan 2025 17:52:03 +0100 Subject: [PATCH] fix missing fields --- bindings_node/src/conversations.rs | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/bindings_node/src/conversations.rs b/bindings_node/src/conversations.rs index d6aded13a..6be13f747 100644 --- a/bindings_node/src/conversations.rs +++ b/bindings_node/src/conversations.rs @@ -154,17 +154,15 @@ impl Conversations { account_addresses: Vec, options: Option, ) -> Result { - 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() {