MessageOperationResult

Common result type for message operations (sending, editing, deleting) that return Unit on success. This provides a Swift-friendly API while maintaining backward compatibility with Either for internal use.

Inheritors

Types

Link copied to clipboard
data class Failure(val error: <Error class: unknown class>) : MessageOperationResult

Indicates the message operation failed.

Link copied to clipboard

Indicates the message operation completed successfully.

Functions

Link copied to clipboard
fun toEither(): <Error class: unknown class><<Error class: unknown class>, Unit>

Converts this result to an Either type for internal Kalium use or JVM/Android clients. This function is hidden from iOS/Swift to maintain a clean Swift API.