Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink committed Dec 16, 2024
1 parent aab546f commit 513f66d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bindings_ffi/src/mls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,8 @@ impl FfiConversations {
FfiStreamCloser::new(handle)
}

/// Get notified when there is a new consent update either locally or is synced from anotherh device
/// allowing the user to re-render the new state appropriately
pub async fn stream_consent(&self, callback: Arc<dyn FfiConsentCallback>) -> FfiStreamCloser {
let handle =
RustXmtpClient::stream_consent_with_callback(self.inner_client.clone(), move |msg| {
Expand All @@ -1085,6 +1087,8 @@ impl FfiConversations {
FfiStreamCloser::new(handle)
}

/// Get notified when a preference changes either locally or is synced from another device
/// allowing the user to re-render the new state appropriately.
pub async fn stream_preferences(
&self,
callback: Arc<dyn FfiPreferenceCallback>,
Expand Down

0 comments on commit 513f66d

Please sign in to comment.