From 9dd4c61c8c80ff412c33d751ad78dd77ef72ea29 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Tue, 20 Aug 2024 21:35:51 +0800 Subject: [PATCH] Fix shared photos wrongly filtered out in collection browser --- app/lib/widget/collection_browser/bloc.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/lib/widget/collection_browser/bloc.dart b/app/lib/widget/collection_browser/bloc.dart index 59792d72..f19bde5b 100644 --- a/app/lib/widget/collection_browser/bloc.dart +++ b/app/lib/widget/collection_browser/bloc.dart @@ -527,7 +527,12 @@ class _Bloc extends Bloc<_Event, _State> } final results = rawItems.where((e) { if (e is CollectionFileItem) { - return whitelist.contains(e.file.fdId); + if (file_util.isNcAlbumFile(account, e.file)) { + // file shared with us are not in our db + return true; + } else { + return whitelist.contains(e.file.fdId); + } } else { return true; }