PersistConversationsUseCase
interface 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).