From 03aad1e6a7d59fedf870c28d332b7878c8976bbd Mon Sep 17 00:00:00 2001 From: cameronvoell Date: Mon, 13 Jan 2025 16:30:58 -0800 Subject: [PATCH] disable history sync on update consent state --- xmtp_mls/src/groups/mod.rs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/xmtp_mls/src/groups/mod.rs b/xmtp_mls/src/groups/mod.rs index f2ed98b03..f996d0643 100644 --- a/xmtp_mls/src/groups/mod.rs +++ b/xmtp_mls/src/groups/mod.rs @@ -727,7 +727,7 @@ impl MlsGroup { self.sync_until_last_intent_resolved(provider).await?; // implicitly set group consent state to allowed - // self.update_consent_state(ConsentState::Allowed)?; + self.update_consent_state(ConsentState::Allowed)?; message_id } @@ -1250,15 +1250,15 @@ impl MlsGroup { ); conn.insert_or_replace_consent_records(&[consent_record.clone()])?; - if self.client.history_sync_url().is_some() { - // Dispatch an update event so it can be synced across devices - let _ = self - .client - .local_events() - .send(LocalEvents::OutgoingPreferenceUpdates(vec![ - UserPreferenceUpdate::ConsentUpdate(consent_record), - ])); - } + // if self.client.history_sync_url().is_some() { + // // Dispatch an update event so it can be synced across devices + // let _ = self + // .client + // .local_events() + // .send(LocalEvents::OutgoingPreferenceUpdates(vec![ + // UserPreferenceUpdate::ConsentUpdate(consent_record), + // ])); + // } Ok(()) }