opt set dyn react count

Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-06-24 17:12:07 +08:00
parent 9d94c72e95
commit 735bb0ac23
2 changed files with 9 additions and 7 deletions

View File

@@ -25,7 +25,11 @@ class DynReactController
@override
bool customHandleResponse(bool isRefresh, Success<DynReactionData> response) {
if (isRefresh) {
count.value = response.response.total;
final res = response.response;
final total = res.total;
if (!(total == 0 && res.items?.isNotEmpty == true)) {
count.value = total;
}
}
return false;
}