opt msg top

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-03 22:34:27 +08:00
parent 19cf085e3e
commit 84e24b5827
8 changed files with 86 additions and 60 deletions

View File

@@ -5,8 +5,8 @@ import 'package:PiliPlus/pages/common/common_list_controller.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
class AtMeController extends CommonListController<MsgFeedAtMe, AtMeItems> {
int cursor = -1;
int cursorTime = -1;
int? cursor;
int? cursorTime;
@override
void onInit() {
@@ -25,15 +25,15 @@ class AtMeController extends CommonListController<MsgFeedAtMe, AtMeItems> {
if (data.cursor?.isEnd == true) {
isEnd = true;
}
cursor = data.cursor?.id ?? -1;
cursorTime = data.cursor?.time ?? -1;
cursor = data.cursor?.id;
cursorTime = data.cursor?.time;
return false;
}
@override
Future<void> onRefresh() {
cursor = -1;
cursorTime = -1;
cursor = null;
cursorTime = null;
return super.onRefresh();
}