Skip to content

Commit

Permalink
prevents future migrations from hitting error
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Nov 26, 2024
1 parent 8d637a9 commit 8269f20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions xmtp_mls/src/storage/encrypted_store/group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ pub struct StoredGroup {
pub membership_state: GroupMembershipState,
/// Track when the latest, most recent installations were checked
pub installations_last_checked: i64,
/// Enum, [`ConversationType`] signifies the group conversation type which extends to who can access it.
pub conversation_type: ConversationType,
/// The inbox_id of who added the user to a group.
pub added_by_inbox_id: String,
/// The sequence id of the welcome message
Expand All @@ -42,6 +40,8 @@ pub struct StoredGroup {
pub dm_inbox_id: Option<String>,
/// The last time the leaf node encryption key was rotated
pub rotated_at_ns: i64,
/// Enum, [`ConversationType`] signifies the group conversation type which extends to who can access it.
pub conversation_type: ConversationType,
}

impl_fetch!(StoredGroup, groups, Vec<u8>);
Expand Down
2 changes: 1 addition & 1 deletion xmtp_mls/src/storage/encrypted_store/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ diesel::table! {
created_at_ns -> BigInt,
membership_state -> Integer,
installations_last_checked -> BigInt,
conversation_type -> Integer,
added_by_inbox_id -> Text,
welcome_id -> Nullable<BigInt>,
dm_inbox_id -> Nullable<Text>,
rotated_at_ns -> BigInt,
conversation_type -> Integer,
}
}

Expand Down

0 comments on commit 8269f20

Please sign in to comment.