fix: live follow list

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-11 18:42:57 +08:00
parent e8185535b0
commit 1eadcd41f6

View File

@@ -62,14 +62,14 @@ class LiveController
followEnd = true; followEnd = true;
} }
followListState.value = LoadingState.success(dataList); followListState.value = LoadingState.success(dataList);
} else if (loadingState.value is Success) { } else if (followListState.value is Success) {
List<LiveFollowingItemModel> list = List<LiveFollowingItemModel> list =
(loadingState.value as Success).response; (followListState.value as Success).response;
list.addAll(dataList!); list.addAll(dataList!);
if (list.length >= liveCount.value) { if (list.length >= liveCount.value) {
followEnd = true; followEnd = true;
} }
loadingState.refresh(); followListState.refresh();
} }
followPage++; followPage++;
} else if (isRefresh) { } else if (isRefresh) {