From 80c7673119b6dcdeef4e4836620b980da934c300 Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Thu, 19 Dec 2024 14:43:40 -0800 Subject: [PATCH] implement default for QueryableContentFields --- xmtp_mls/src/groups/mod.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/xmtp_mls/src/groups/mod.rs b/xmtp_mls/src/groups/mod.rs index a72c0d02c..1431925b5 100644 --- a/xmtp_mls/src/groups/mod.rs +++ b/xmtp_mls/src/groups/mod.rs @@ -317,6 +317,17 @@ pub struct QueryableContentFields { pub authority_id: String, } +impl Default for QueryableContentFields { + fn default() -> Self { + Self { + content_type: ContentType::Unknown, // Or whatever the appropriate default is + version_major: 0, + version_minor: 0, + authority_id: String::new(), + } + } +} + /// Represents a group, which can contain anywhere from 1 to MAX_GROUP_SIZE inboxes. /// /// This is a wrapper around OpenMLS's `MlsGroup` that handles our application-level configuration