diff --git a/lib/http/reply.dart b/lib/http/reply.dart index ba0c9b32d..43527bfae 100644 --- a/lib/http/reply.dart +++ b/lib/http/reply.dart @@ -109,22 +109,23 @@ class ReplyHttp { .hasMatch(mainListReply.upTop.content.message)) { mainListReply.clearUpTop(); } - } - // replies - if (mainListReply.replies.isNotEmpty) { - mainListReply.replies.removeWhere((item) { - bool hasMatch = RegExp(banWordForReply, caseSensitive: false) - .hasMatch(item.content.message); - // remove subreplies - if (hasMatch.not) { - if (item.replies.isNotEmpty) { - item.replies.removeWhere((item) => - RegExp(banWordForReply, caseSensitive: false) - .hasMatch(item.content.message)); + + // replies + if (mainListReply.replies.isNotEmpty) { + mainListReply.replies.removeWhere((item) { + bool hasMatch = RegExp(banWordForReply, caseSensitive: false) + .hasMatch(item.content.message); + // remove subreplies + if (hasMatch.not) { + if (item.replies.isNotEmpty) { + item.replies.removeWhere((item) => + RegExp(banWordForReply, caseSensitive: false) + .hasMatch(item.content.message)); + } } - } - return hasMatch; - }); + return hasMatch; + }); + } } return LoadingState.success(mainListReply); } else { diff --git a/lib/http/video.dart b/lib/http/video.dart index d65948644..1b4ff0358 100644 --- a/lib/http/video.dart +++ b/lib/http/video.dart @@ -133,7 +133,6 @@ class VideoHttp { 'bili-http-engine': 'cronet', }), ); - Utils.showCopyTextDialog(jsonEncode(res.data)); if (res.data['code'] == 0) { List list = []; List blackMidsList = GStorage.blackMidsList;