Skip to main content

stream_conversations

Function stream_conversations 

Source
pub async fn stream_conversations<'a, Context>(
    context: &'a Context,
    conversation_type: Option<ConversationType>,
    include_duplicate_dms: bool,
) -> Result<impl Stream<Item = Result<MlsGroup<Context>, SubscribeError>> + use<'a, Context>, SubscribeError>
where Context: XmtpSharedContext + 'static, <Context as CoreContext>::ApiClient: XmtpMlsStreams,
Expand description

Stream the conversations of context that match conversation_type, as they are created or joined, borrowing the context for the stream’s lifetime.