Skip to content

Commit

Permalink
disable history sync on update consent state
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Jan 14, 2025
1 parent c150a63 commit 03aad1e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ impl<ScopedClient: ScopedGroupClient> MlsGroup<ScopedClient> {
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
}
Expand Down Expand Up @@ -1250,15 +1250,15 @@ impl<ScopedClient: ScopedGroupClient> MlsGroup<ScopedClient> {
);
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(())
}
Expand Down

0 comments on commit 03aad1e

Please sign in to comment.