ToggleReactionUseCase
class ToggleReactionUseCase(currentClientIdProvider: CurrentClientIdProvider, userId: <Error class: unknown class>, slowSyncRepository: SlowSyncRepository, reactionRepository: ReactionRepository, messageSender: MessageSender, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)
Toggles a reaction on a message. If the reaction already exists it will be removed, if not it will be added.
Constructors
Link copied to clipboard
internal constructor(currentClientIdProvider: CurrentClientIdProvider, userId: <Error class: unknown class>, slowSyncRepository: SlowSyncRepository, reactionRepository: ReactionRepository, messageSender: MessageSender, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)
Functions
Link copied to clipboard
suspend operator fun invoke(conversationId: <Error class: unknown class>, messageId: String, reaction: String): Either<CoreFailure, Unit>
Operation to toggle a reaction on a message