Merge pull request #629 from GetStream/hotfix/pagination

fix(core): `ChannelListView` pagination on refresh
This commit is contained in:
Salvatore Giordano
2021-08-17 12:00:17 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
@@ -1,3 +1,8 @@
## Upcoming
🐞 Fixed
- [#612](https://github.com/GetStream/stream-chat-flutter/issues/612) `ChannelListView` pagination doesn't work after refresh
## 2.1.1
- Updated llc dependency
@@ -106,6 +106,9 @@ class ChannelsBlocState extends State<ChannelsBloc>
final client = _streamChatCoreState!.client;
final clear = paginationParams.offset == 0;
if (clear && _paginationEnded) {
_paginationEnded = false;
}
if ((!clear && _paginationEnded) ||
_queryChannelsLoadingController.value == true) {