mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
opt reply check
fix check dyn Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -51,12 +51,6 @@ class VideoReplyReplyController extends ReplyController
|
||||
queryData();
|
||||
}
|
||||
|
||||
@override
|
||||
Future<void> onRefresh() {
|
||||
paginationReply = null;
|
||||
return super.onRefresh();
|
||||
}
|
||||
|
||||
@override
|
||||
List<ReplyInfo>? getDataList(response) {
|
||||
return isDialogue ? response.replies : response.root.replies;
|
||||
@@ -66,6 +60,7 @@ class VideoReplyReplyController extends ReplyController
|
||||
bool customHandleResponse(bool isRefresh, Success response) {
|
||||
final data = response.response;
|
||||
|
||||
subjectControl = data.subjectControl;
|
||||
upMid ??= data.subjectControl.upMid;
|
||||
paginationReply = data.paginationReply;
|
||||
isEnd = data.cursor.isEnd;
|
||||
@@ -141,6 +136,12 @@ class VideoReplyReplyController extends ReplyController
|
||||
int? index,
|
||||
}) {
|
||||
assert(replyItem != null && index != null);
|
||||
|
||||
final (bool inputDisable, String? hint) = replyHint;
|
||||
if (inputDisable) {
|
||||
return;
|
||||
}
|
||||
|
||||
final oid = replyItem!.oid.toInt();
|
||||
final root = replyItem.id.toInt();
|
||||
final key = oid + root;
|
||||
@@ -150,6 +151,7 @@ class VideoReplyReplyController extends ReplyController
|
||||
GetDialogRoute(
|
||||
pageBuilder: (buildContext, animation, secondaryAnimation) {
|
||||
return ReplyPage(
|
||||
hint: hint,
|
||||
oid: oid,
|
||||
root: root,
|
||||
parent: root,
|
||||
|
||||
Reference in New Issue
Block a user