Skip to content

Commit

Permalink
bring this code back
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Jan 14, 2025
1 parent 1a5f92f commit 84e59ca
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions xmtp_mls/src/groups/mod.rs
Original file line number Diff line number Diff line change
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 84e59ca

Please sign in to comment.