Skip to content

Commit

Permalink
implement default for QueryableContentFields
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Dec 19, 2024
1 parent d42e315 commit 80c7673
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 80c7673

Please sign in to comment.