OneOnOneMigrator

Functions

Link copied to clipboard
abstract suspend fun migrateExistingProteus(user: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>

Migrates the user's one-on-one Proteus. Without creating a new one since MLS is the default, marking it as active.

Link copied to clipboard
abstract suspend fun migrateToMLS(user: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>

Perform migration of Proteus to MLS keeping history and marking the new conversation as active.

Link copied to clipboard
abstract suspend fun migrateToProteus(user: <Error class: unknown class>): Either<CoreFailure, <Error class: unknown class>>

Get one-on-one conversation with the user, if not found, create a new one (Proteus still default) and mark it as active.