AddMembersViewState

data class AddMembersViewState(val isLoading: Boolean = true, val isLoadingMore: Boolean = false, val query: String = "", val searchResult: List<User> = emptyList(), val selectedUserIds: Set<String> = emptySet(), val loadedMemberIds: Set<String> = emptySet())

Represents the state of the "Add Members" view.

Parameters

isLoading

Whether the view is currently loading the initial search results.

isLoadingMore

Whether the view is currently loading additional (paginated) results.

query

The current search query.

searchResult

The list of users matching the search query.

selectedUserIds

The set of IDs of users selected to be added as members.

loadedMemberIds

The set of IDs of users who are already members of the channel.

Constructors

Link copied to clipboard
constructor(isLoading: Boolean = true, isLoadingMore: Boolean = false, query: String = "", searchResult: List<User> = emptyList(), selectedUserIds: Set<String> = emptySet(), loadedMemberIds: Set<String> = emptySet())

Properties

Link copied to clipboard
val isLoading: Boolean = true
Link copied to clipboard
val isLoadingMore: Boolean = false
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns true if the given user is already a member of the channel.

Link copied to clipboard
fun isSelected(user: User): Boolean

Returns true if the given user is selected to be added as a member.