Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit d1eb90c

Browse files
committed
Re-enable zaps if disabled
1 parent 2152f7d commit d1eb90c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

mutiny-core/src/hermes.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,10 @@ impl<S: MutinyStorage> HermesClient<S> {
184184

185185
// check that federation is still the same
186186
if let Some(f) = first_federation {
187-
// if a registered federation exists and is what we have
187+
// if a registered federation exists and is what we have and zaps are enabled
188188
// then there is no reason to update
189-
if o.federation_id.is_some()
190-
&& f.federation_id == o.federation_id.unwrap()
189+
if o.federation_id.is_some_and(|id| id == f.federation_id)
190+
&& !o.disabled_zaps
191191
{
192192
break;
193193
}

0 commit comments

Comments
 (0)