opt: query data

fix: webdav backup

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-10 00:00:37 +08:00
parent 36ff4a0ed3
commit cef7bfd534
5 changed files with 68 additions and 39 deletions

View File

@@ -15,15 +15,14 @@ class SysMsgController extends CommonController {
}
@override
List? handleListResponse(List currentList, List dataList) {
void handleListResponse(List dataList) {
if (cursor == -1) {
msgSysUpdateCursor(dataList.firstOrNull?.cursor);
msgSysUpdateCursor(dataList.first?.cursor);
}
cursor = dataList.lastOrNull?.cursor ?? -1;
cursor = dataList.last?.cursor ?? -1;
if (isEnd.not && dataList.length + 1 < pageSize) {
isEnd = true;
}
return null;
}
Future msgSysUpdateCursor(int? cursor) async {