invoke

suspend operator fun invoke(conversationId: <Error class: unknown class>, originalMessageId: String, text: String, mentions: List<<Error class: unknown class>> = emptyList(), editedMessageId: String = uuid4().toString()): Either<CoreFailure, Unit>

Operation to edit a text message.

Return

Either or Unit //fixme: we should not return Either

Parameters

conversationId

the id of the conversation the message belongs to

originalMessageId

the id of the message to edit

text

the edited content of the message

mentions

the edited mentions in the message