closeConversation

abstract suspend fun closeConversation(conversationId: UUID): Result<Unit>

Closes a conversation, ending the messaging session permanently.

Once closed, the conversation cannot be reopened and no further messages can be sent. If the conversation needs to be resumed later, end the session instead of closing — session-ended conversations can still receive new messages.

Return

Result.Success on successful closure, or Result.Error on failure.

Parameters

conversationId

The unique identifier of the conversation to close.