refa: query data (#659)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-04-10 21:43:01 +08:00
committed by GitHub
parent 99b19e7b03
commit e1b73f4766
128 changed files with 1493 additions and 1987 deletions

View File

@@ -358,8 +358,7 @@ class _VideoReplyReplyPanelState
: <ReplyInfo>[];
list.insert(index + 1, replyInfo);
_videoReplyReplyController.count.value += 1;
_videoReplyReplyController.loadingState.value =
LoadingState.success(list);
_videoReplyReplyController.loadingState.refresh();
if (_videoReplyReplyController.enableCommAntifraud && mounted) {
_videoReplyReplyController.checkReply(
context: context,
@@ -456,13 +455,12 @@ class _VideoReplyReplyPanelState
onReply: () {
_onReply(replyItem, index);
},
onDelete: (rpid, frpid) {
List list =
onDelete: (subIndex) {
List<ReplyInfo> list =
(_videoReplyReplyController.loadingState.value as Success).response;
list = list.where((item) => item.id != rpid).toList();
list.removeAt(index);
_videoReplyReplyController.count.value -= 1;
_videoReplyReplyController.loadingState.value =
LoadingState.success(list);
_videoReplyReplyController.loadingState.refresh();
},
upMid: _videoReplyReplyController.upMid,
showDialogue: () {