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() + } } }