DefaultChatEventHandler

open class DefaultChatEventHandler(channels: StateFlow<Map<String, Channel>?>, clientState: ClientState) : BaseChatEventHandler

Default implementation of ChatEventHandler which is based on the current user membership.

Parameters

channels

The map of visible channels.

clientState

The client state used to obtain current user.

Constructors

Link copied to clipboard
constructor(channels: StateFlow<Map<String, Channel>?>, clientState: ClientState)

Functions

Link copied to clipboard

Handles additional events:

Link copied to clipboard
open override fun handleCidEvent(event: CidEvent, filter: FilterObject, cachedChannel: Channel?): EventHandlingResult

Handles additional events:

Inherited functions

Link copied to clipboard
open override fun handleChatEvent(event: ChatEvent, filter: FilterObject, cachedChannel: Channel?): EventHandlingResult

Computes the event handling result.