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