Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mchenani committed Jan 9, 2025
1 parent 747e27b commit c2d1d1c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion xmtp_mls/src/groups/group_permissions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ impl MetadataPolicies {
pub fn default_map(policies: MetadataPolicies) -> HashMap<String, MetadataPolicies> {
let mut map: HashMap<String, MetadataPolicies> = HashMap::new();
for field in GroupMutableMetadata::supported_fields() {
map.insert(field.to_string(), policies.clone());
if field == MessageExpirationMillis {
map.insert(field.to_string(), MetadataPolicies::allow_if_actor_admin());
} else {
map.insert(field.to_string(), policies.clone());
}
}
map
}
Expand Down

0 comments on commit c2d1d1c

Please sign in to comment.