revert: 评论详情优先展示二级评论

This commit is contained in:
guozhigq
2024-04-28 07:39:55 +08:00
parent 72ee515ae5
commit 1b8b3947be
6 changed files with 11 additions and 32 deletions

View File

@ -26,7 +26,7 @@ class VideoReplyReplyController extends GetxController {
currentPage = 0;
}
Future queryReplyList({type = 'init', currentReply}) async {
Future queryReplyList({type = 'init'}) async {
if (type == 'init') {
currentPage = 0;
}
@ -63,14 +63,6 @@ class VideoReplyReplyController extends GetxController {
// res['data'].replies.addAll(replyList);
}
}
if (replyList.isNotEmpty && currentReply != null) {
int indexToRemove =
replyList.indexWhere((item) => currentReply.rpid == item.rpid);
// 如果找到了指定ID的项则移除
if (indexToRemove != -1) {
replyList.removeAt(indexToRemove);
}
}
isLoadingMore = false;
return res;
}