avoid fetching hidden memories for memories (duh)
This commit is contained in:
parent
03ea93f277
commit
c54fe344ce
2 changed files with 6 additions and 5 deletions
|
@ -580,10 +580,10 @@ class FilesDB {
|
|||
|
||||
Future<List<File>> getFilesCreatedWithinDurations(
|
||||
List<List<int>> durations,
|
||||
Set<int> ignoredCollectionIDs,
|
||||
Set<int> ignoredCollectionIDs,
|
||||
) async {
|
||||
final db = await instance.database;
|
||||
String whereClause = "";
|
||||
String whereClause = "( ";
|
||||
for (int index = 0; index < durations.length; index++) {
|
||||
whereClause += "($columnCreationTime > " +
|
||||
durations[index][0].toString() +
|
||||
|
@ -594,13 +594,14 @@ class FilesDB {
|
|||
whereClause += " OR ";
|
||||
}
|
||||
}
|
||||
whereClause += ") AND $columnMMdVisibility = $kVisibilityVisible";
|
||||
final results = await db.query(
|
||||
table,
|
||||
where: whereClause,
|
||||
orderBy: '$columnCreationTime ASC',
|
||||
);
|
||||
final files = _convertToFiles(results);
|
||||
return _deduplicatedAndFilterIgnoredFiles(files, ignoredCollectionIDs)
|
||||
return _deduplicatedAndFilterIgnoredFiles(files, ignoredCollectionIDs);
|
||||
}
|
||||
|
||||
Future<List<File>> getFilesToBeUploadedWithinFolders(
|
||||
|
|
|
@ -334,8 +334,8 @@ class _FullScreenMemoryState extends State<FullScreenMemory> {
|
|||
child: IconButton(
|
||||
icon: Icon(
|
||||
Icons.adaptive.share,
|
||||
color: Colors.white,
|
||||
), //same for both themes
|
||||
color: Colors.white, //same for both themes
|
||||
),
|
||||
onPressed: () {
|
||||
share(context, [file]);
|
||||
},
|
||||
|
|
Loading…
Add table
Reference in a new issue