fix: archived files which are not part of an archived album were coming up in moments
This commit is contained in:
parent
8a8654bfc8
commit
f25a4e59b4
2 changed files with 5 additions and 0 deletions
|
@ -699,6 +699,7 @@ class FilesDB {
|
|||
Future<List<EnteFile>> getFilesCreatedWithinDurations(
|
||||
List<List<int>> durations,
|
||||
Set<int> ignoredCollectionIDs, {
|
||||
int? visibility,
|
||||
String order = 'ASC',
|
||||
}) async {
|
||||
if (durations.isEmpty) {
|
||||
|
@ -714,6 +715,8 @@ class FilesDB {
|
|||
")";
|
||||
if (index != durations.length - 1) {
|
||||
whereClause += " OR ";
|
||||
} else if (visibility != null) {
|
||||
whereClause += ' AND $columnMMdVisibility = $visibility';
|
||||
}
|
||||
}
|
||||
whereClause += ")";
|
||||
|
|
|
@ -8,6 +8,7 @@ import "package:photos/events/files_updated_event.dart";
|
|||
import "package:photos/events/memories_setting_changed.dart";
|
||||
import 'package:photos/models/filters/important_items_filter.dart';
|
||||
import 'package:photos/models/memory.dart';
|
||||
import "package:photos/models/metadata/common_keys.dart";
|
||||
import 'package:photos/services/collections_service.dart';
|
||||
import "package:shared_preferences/shared_preferences.dart";
|
||||
|
||||
|
@ -108,6 +109,7 @@ class MemoriesService extends ChangeNotifier {
|
|||
final files = await _filesDB.getFilesCreatedWithinDurations(
|
||||
durations,
|
||||
ignoredCollections,
|
||||
visibility: visibleVisibility,
|
||||
);
|
||||
final seenTimes = await _memoriesDB.getSeenTimes();
|
||||
final List<Memory> memories = [];
|
||||
|
|
Loading…
Add table
Reference in a new issue