Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2026-01-02 12:05:31 +08:00
parent 80e007bac6
commit 041af37bb0
67 changed files with 775 additions and 838 deletions

View File

@@ -168,19 +168,19 @@ mixin FavMixin on TripleMixin {
Future<LoadingState<FavFolderData>> queryVideoInFolder() async {
favIds = null;
final (rid, type) = getFavRidType;
final result = await FavHttp.videoInFolder(
final res = await FavHttp.videoInFolder(
mid: Accounts.main.mid,
rid: rid,
type: type,
);
if (result.isSuccess) {
favFolderData.value = result.data;
favIds = result.data.list
if (res case Success(:final response)) {
favFolderData.value = response;
favIds = response.list
?.where((item) => item.favState == 1)
.map((item) => item.id)
.toSet();
}
return result;
return res;
}
int get favFolderId {