Skip to content

Commit

Permalink
fmt fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Jul 2, 2024
1 parent 8e827c6 commit c87f744
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 4 additions & 2 deletions xmtp_mls/src/groups/group_mutable_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ use xmtp_proto::xmtp::mls::message_contents::{
};

use crate::configuration::{
DEFAULT_GROUP_DESCRIPTION, DEFAULT_GROUP_IMAGE_URL_SQUARE, DEFAULT_GROUP_NAME, DEFAULT_PINNED_FRAME, MUTABLE_METADATA_EXTENSION_ID
DEFAULT_GROUP_DESCRIPTION, DEFAULT_GROUP_IMAGE_URL_SQUARE, DEFAULT_GROUP_NAME,
DEFAULT_PINNED_FRAME, MUTABLE_METADATA_EXTENSION_ID,
};

use super::GroupMetadataOptions;
Expand Down Expand Up @@ -100,7 +101,8 @@ impl GroupMutableMetadata {
);
attributes.insert(
MetadataField::PinnedFrame.to_string(),
opts.pinned_frame.unwrap_or_else(|| DEFAULT_PINNED_FRAME.to_string()),
opts.pinned_frame
.unwrap_or_else(|| DEFAULT_PINNED_FRAME.to_string()),
);
let admin_list = vec![];
let super_admin_list = vec![creator_inbox_id.clone()];
Expand Down
3 changes: 1 addition & 2 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,7 @@ impl MlsGroup {
{
let conn = self.context.store.conn()?;
let intent_data: Vec<u8> =
UpdateMetadataIntentData::new_update_pinned_frame(pinned_frame)
.into();
UpdateMetadataIntentData::new_update_pinned_frame(pinned_frame).into();
let intent = conn.insert_group_intent(NewGroupIntent::new(
IntentKind::MetadataUpdate,
self.group_id.clone(),
Expand Down

0 comments on commit c87f744

Please sign in to comment.