UpdateConversationProtocolUseCase
interface UpdateConversationProtocolUseCase
Use case responsible for updating the protocol of a conversation, either locally or remotely.
If localOnly
is true, the protocol is updated only in the local database. Otherwise, the change is performed through the backend, and the updated conversation is persisted locally using PersistConversationsUseCase if needed.
Return
Either.Right with true
if the update was successful, or Either.Left if an error occurred.
Parameters
conversationId
ID of the conversation to update.
protocol
The new protocol to apply.
localOnly
If true, applies the protocol update locally without backend interaction.