[Problem/Question]
List of group channels is not loading all channels for a user.
[SDK Version]
“@sendbird/chat”: “4.20.5”,
“@sendbird/uikit-react-native”: “3.12.1”,
[Reproduction Steps]
-
You have to create multiple group channels for a user, at least 100.
-
Create query params as below:
const channelListQueryParams: ChannelListQueryParamsType = {
order: GroupChannelListOrder.LATEST_LAST_MESSAGE,
hiddenChannelFilter:HiddenChannelFilter.UNHIDDEN,,
unreadChannelFilter:UnreadChannelFilter.ALL,
limit: 40,
}; -
Use components from @sendbird/uikit-react-native to load list of chats
[Frequency]
Every first time when going to screen with chat list
[Current impact]
Poor user experience, user complain about missing chats.
[Debugging discoveries]
Inside useGroupChannelList hooks is flag hasMore which makes hook load more channels or not. Somehow this flag is set to false sometimes. If you change channelListQueryParams params to something different, for example add customTypesFilter and then change it back to params mentioned before whole list will be loaded