ObserveConversationInteractionAvailabilityUseCase

class ObserveConversationInteractionAvailabilityUseCase(conversationRepository: ConversationRepository, userRepository: UserRepository, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)

Use case that check if self user is able to interact in conversation.

To interact with a conversation means to be able to send messages. This includes non-standalone messages, like MessageContent.Reaction, MessageContent.ButtonAction, etc.

See also

InteractionAvailability

Constructors

internal constructor(conversationRepository: ConversationRepository, userRepository: UserRepository, dispatcher: <Error class: unknown class> = KaliumDispatcherImpl)

Functions

Link copied to clipboard
suspend operator fun invoke(conversationId: <Error class: unknown class>): <Error class: unknown class><IsInteractionAvailableResult>