Merge pull request #629 from GetStream/hotfix/pagination
fix(core): `ChannelListView` pagination on refresh
This commit is contained in:
@@ -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
|
## 2.1.1
|
||||||
|
|
||||||
- Updated llc dependency
|
- Updated llc dependency
|
||||||
|
|||||||
@@ -106,6 +106,9 @@ class ChannelsBlocState extends State<ChannelsBloc>
|
|||||||
final client = _streamChatCoreState!.client;
|
final client = _streamChatCoreState!.client;
|
||||||
|
|
||||||
final clear = paginationParams.offset == 0;
|
final clear = paginationParams.offset == 0;
|
||||||
|
if (clear && _paginationEnded) {
|
||||||
|
_paginationEnded = false;
|
||||||
|
}
|
||||||
|
|
||||||
if ((!clear && _paginationEnded) ||
|
if ((!clear && _paginationEnded) ||
|
||||||
_queryChannelsLoadingController.value == true) {
|
_queryChannelsLoadingController.value == true) {
|
||||||
|
|||||||
Reference in New Issue
Block a user