mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt msg top
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -6,8 +6,8 @@ import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
|
||||
class ReplyMeController
|
||||
extends CommonListController<MsgFeedReplyMe, ReplyMeItems> {
|
||||
int cursor = -1;
|
||||
int cursorTime = -1;
|
||||
int? cursor;
|
||||
int? cursorTime;
|
||||
|
||||
@override
|
||||
void onInit() {
|
||||
@@ -26,15 +26,15 @@ class ReplyMeController
|
||||
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();
|
||||
}
|
||||
|
||||
|
||||
@@ -84,13 +84,16 @@ class _ReplyMePageState extends State<ReplyMePage> {
|
||||
return ListTile(
|
||||
onTap: () {
|
||||
String? nativeUri = item.item?.nativeUri;
|
||||
if (nativeUri != null) {
|
||||
PiliScheme.routePushFromUrl(
|
||||
nativeUri,
|
||||
businessId: item.item?.businessId,
|
||||
oid: item.item?.subjectId,
|
||||
);
|
||||
if (nativeUri == null ||
|
||||
nativeUri.isEmpty ||
|
||||
nativeUri.startsWith('?')) {
|
||||
return;
|
||||
}
|
||||
PiliScheme.routePushFromUrl(
|
||||
nativeUri,
|
||||
businessId: item.item?.businessId,
|
||||
oid: item.item?.subjectId,
|
||||
);
|
||||
},
|
||||
onLongPress: () => showConfirmDialog(
|
||||
context: context,
|
||||
|
||||
Reference in New Issue
Block a user