test(core): fix tests

Signed-off-by: xsahil03x <[email protected]>
This commit is contained in:
Sahil Kumar
2021-09-07 20:20:49 +05:30
committed by xsahil03x
parent d9de5e15ad
commit 3069f87629
3 changed files with 21 additions and 7 deletions
@@ -105,7 +105,8 @@ class ChannelsBlocState extends State<ChannelsBloc>
}) async {
final client = _streamChatCoreState!.client;
final clear = paginationParams.offset == 0;
final offset = paginationParams.offset;
final clear = offset == null || offset == 0;
if (clear && _paginationEnded) {
_paginationEnded = false;
}
@@ -75,7 +75,9 @@ class UsersBlocState extends State<UsersBloc>
}
try {
final clear = pagination == null || pagination.offset == 0;
final clear = pagination == null ||
pagination.offset == null ||
pagination.offset == 0;
final oldUsers = List<User>.from(users ?? []);