From f37527462cb1fe5bc1710aafd55d225b097e3155 Mon Sep 17 00:00:00 2001 From: Dakota Brink Date: Fri, 20 Dec 2024 17:50:37 -0500 Subject: [PATCH] add option to include duplicate dms --- bindings_ffi/src/mls.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/bindings_ffi/src/mls.rs b/bindings_ffi/src/mls.rs index 2da7652f3..1bcfd7699 100644 --- a/bindings_ffi/src/mls.rs +++ b/bindings_ffi/src/mls.rs @@ -592,15 +592,19 @@ pub struct FfiListConversationsOptions { pub created_before_ns: Option, pub limit: Option, pub consent_state: Option, + pub include_duplicate_dms: bool, } impl From for GroupQueryArgs { fn from(opts: FfiListConversationsOptions) -> GroupQueryArgs { - GroupQueryArgs::default() - .maybe_created_before_ns(opts.created_before_ns) - .maybe_created_after_ns(opts.created_after_ns) - .maybe_limit(opts.limit) - .maybe_consent_state(opts.consent_state.map(Into::into)) + GroupQueryArgs { + created_before_ns: opts.created_before_ns, + created_after_ns: opts.created_after_ns, + limit: opts.limit, + consent_state: opts.consent_state.map(Into::into), + include_duplicate_dms: opts.include_duplicate_dms, + ..Default::default() + } } }