LocalUserLookupHandler

class LocalUserLookupHandler @JvmOverloads constructor(chatClient: ChatClient, channelCid: String, filter: QueryFilter<User> = DefaultQueryFilter { it.name.ifBlank { it.id } }) : UserLookupHandler

Local user lookup handler. It uses the local state to search for users.

Parameters

chatClient

Chat client used to query members.

channelCid

The CID of the channel we are querying for members.

filter

The filter used to filter the users.

Constructors

Link copied to clipboard
constructor(chatClient: ChatClient, channelCid: String, filter: QueryFilter<User> = DefaultQueryFilter { it.name.ifBlank { it.id } })

Functions

Link copied to clipboard
open suspend override fun handleUserLookup(query: String): List<User>

Performs users lookup by given query in suspend way. It's executed on background, so it can perform heavy operations.

Inherited functions