processEvent
abstract suspend fun processEvent(transactionContext: <Error class: unknown class>, eventEnvelope: EventEnvelope): <Error class: unknown class><<Error class: unknown class>, Unit>
Processes a single eventEnvelope using the provided transactionContext.
The underlying event is dispatched to the appropriate domain receiver (e.g., conversations, users). If the event is not transient, it is marked as processed via EventRepository.
If processing fails, no updates will be persisted to the event store.
Return
Either a CoreFailure if processing failed, or Unit if processing succeeded.
Parameters
transactionContext
Contains access to Proteus or MLS cryptographic context.
eventEnvelope
The envelope containing the event and its metadata.