fix: repeated reply
This commit is contained in:
@ -70,6 +70,13 @@ class VideoReplyController extends GetxController {
|
|||||||
isEnd = res['data'].cursor.isEnd ?? false;
|
isEnd = res['data'].cursor.isEnd ?? false;
|
||||||
nextOffset = res['data'].cursor.paginationReply.nextOffset ?? "";
|
nextOffset = res['data'].cursor.paginationReply.nextOffset ?? "";
|
||||||
if (replies.isNotEmpty) {
|
if (replies.isNotEmpty) {
|
||||||
|
/// 临时修复
|
||||||
|
final bool flag = replyList
|
||||||
|
.any((ReplyItemModel reply) => reply.rpid == replies.first.rpid);
|
||||||
|
if (replies.length == 1 && flag) {
|
||||||
|
replies.clear();
|
||||||
|
isEnd = true;
|
||||||
|
}
|
||||||
noMore.value = isEnd ? '没有更多了' : '加载中...';
|
noMore.value = isEnd ? '没有更多了' : '加载中...';
|
||||||
} else {
|
} else {
|
||||||
noMore.value =
|
noMore.value =
|
||||||
|
|||||||
Reference in New Issue
Block a user