PersistConversationsUseCase

Use case responsible for persisting a list of conversations in the local database.

It resolves the MLS group state for each conversation (if applicable), maps them to local entities, and persists them. It also updates the conversation members if necessary.

Parameters

conversations

List of conversations received from the backend.

invalidateMembers

Whether the existing member list should be refreshed.

originatedFromEvent

Whether the call originates from an event (affects MLS group state resolution).

Inheritors

Functions

Link copied to clipboard
abstract suspend operator fun invoke(conversations: List<<Error class: unknown class>>, invalidateMembers: Boolean, originatedFromEvent: Boolean = false): <Error class: unknown class><<Error class: unknown class>, Unit>