ChannelsStateData

Types

Link copied to clipboard

Indicates we are loading the first page of results. We are in this state if QueryChannelsState.loading is true For seeing if we're loading more results have a look at QueryChannelsState.loadingMore

Link copied to clipboard

No query is currently running. If you know that a query will be started you typically want to display a loading icon.

Link copied to clipboard

If we are offline and don't have channels stored in offline storage, typically displayed as an error condition.

Link copied to clipboard
data class Result(val channels: List<Channel>) : ChannelsStateData

The list of channels, loaded either from offline storage or an API call. Observe chatDomain.online to know if results are currently up to date