invoke
open suspend operator override fun invoke(conversationId: <Error class: unknown class>, shouldArchiveConversation: Boolean, onlyLocally: Boolean, archivedStatusTimestamp: Long): ArchiveStatusUpdateResult
Use case that allows a conversation to mark a conversation as archived or not.
Return
an ConversationUpdateStatusResult containing Success or Failure cases
Parameters
conversationId
the id of the conversation where status wants to be changed
shouldArchiveConversation
new archived status to be updated on the given conversation
onlyLocally
controls if archived status should only be updated locally
archivedStatusTimestamp
the timestamp when the archiving event occurred