opt filter dyn

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-06-20 23:23:45 +08:00
parent 345402d2fe
commit 5f3f158932
5 changed files with 57 additions and 46 deletions

View File

@@ -36,11 +36,6 @@ class DynamicsTabController
@override
List<DynamicItemModel>? getDataList(DynamicsDataModel response) {
if (dynamicsType != DynamicsTabType.up &&
dynamicsController.tempBannedList.isNotEmpty) {
response.items?.removeWhere((e) => dynamicsController.tempBannedList
.contains(e.modules.moduleAuthor?.mid));
}
offset = response.offset ?? '';
return response.items;
}
@@ -51,6 +46,7 @@ class DynamicsTabController
type: dynamicsType,
offset: offset,
mid: mid,
tempBannedList: dynamicsController.tempBannedList,
);
Future<void> onRemove(int index, dynamic dynamicId) async {