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 931a4f5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
5 changes: 1 addition & 4 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -902,10 +902,7 @@ impl FfiGroup {
Ok(group_description)
}

pub async fn update_pinned_frame(
&self,
pinned_frame: String,
) -> Result<(), GenericError> {
pub async fn update_pinned_frame(&self, pinned_frame: String) -> Result<(), GenericError> {
let group = MlsGroup::new(
self.inner_client.context().clone(),
self.group_id.clone(),
Expand Down
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 931a4f5

Please sign in to comment.