invoke

suspend operator fun invoke(conversationId: <Error class: unknown class>, messageId: String, deleteForEveryone: Boolean): Either<CoreFailure, Unit>

Operation to delete a message from the conversation

Return

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

Parameters

conversationId

the id of the conversation the message belongs to

messageId

the id of the message to delete

deleteForEveryone

either delete the message for everyone or just for the current user