Skip to content

Commit

Permalink
address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mchenani committed Jan 24, 2025
1 parent 0825f6b commit 3911e8f
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions xmtp_mls/src/groups/group_mutable_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ impl fmt::Display for MetadataField {
}
}

#[derive(Debug, Clone, PartialEq)]
#[derive(Default, Debug, Clone, PartialEq)]
pub struct ConversationMessageDisappearingSettings {
pub from_ns: i64,
pub in_ns: i64,
Expand All @@ -81,12 +81,6 @@ impl ConversationMessageDisappearingSettings {
}
}

impl Default for ConversationMessageDisappearingSettings {
fn default() -> Self {
Self::new(0, 0)
}
}

/// Represents the mutable metadata for a group.
///
/// This struct is stored as an MLS Unknown Group Context Extension.
Expand Down Expand Up @@ -143,10 +137,6 @@ impl GroupMutableMetadata {
);

if let Some(message_disappearing_settings) = opts.message_disappearing_settings {
println!(
"message_disappearing_setting:{:?}",
message_disappearing_settings.clone()
);
attributes.insert(
MetadataField::MessageDisappearFromNS.to_string(),
message_disappearing_settings.from_ns.to_string(),
Expand Down

0 comments on commit 3911e8f

Please sign in to comment.