Skip to content

Commit

Permalink
Re-enable zaps if disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
benthecarman committed Jun 10, 2024
1 parent 2152f7d commit d1eb90c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mutiny-core/src/hermes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ impl<S: MutinyStorage> HermesClient<S> {

// check that federation is still the same
if let Some(f) = first_federation {
// if a registered federation exists and is what we have
// if a registered federation exists and is what we have and zaps are enabled
// then there is no reason to update
if o.federation_id.is_some()
&& f.federation_id == o.federation_id.unwrap()
if o.federation_id.is_some_and(|id| id == f.federation_id)
&& !o.disabled_zaps
{
break;
}
Expand Down

0 comments on commit d1eb90c

Please sign in to comment.