GetStream ChannelListState is always Loading

Viewed 27

I am developing an Android App which contains chatting. I am able to connect User and create channel but some how I could not display the channel list. I am using the code block which is in documentation

val viewModel: ChannelListViewModel by viewModels {
        ChannelListViewModelFactory(
            filter = Filters.and(
                Filters.eq("type", "messaging"),
                Filters.`in`("members", listOf("asb")),
            ),
            sort = ChannelListViewModel.DEFAULT_SORT,
            limit = 30,
        )
    }
    // Bind the ViewModel with ChannelListView
    viewModel.bindView(binding.channelListView, viewLifecycleOwner)

When I go to channel list, It only display the progress bar.

0 Answers
Related