|
@@ -2,6 +2,7 @@ import 'dart:io';
|
|
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
+import 'package:photos/core/configuration.dart';
|
|
|
import 'package:photos/core/event_bus.dart';
|
|
|
import 'package:photos/db/files_db.dart';
|
|
|
import 'package:photos/events/files_updated_event.dart';
|
|
@@ -25,8 +26,8 @@ class ArchivePage extends StatelessWidget {
|
|
|
Widget build(Object context) {
|
|
|
final gallery = Gallery(
|
|
|
asyncLoader: (creationStartTime, creationEndTime, {limit, asc}) {
|
|
|
- return FilesDB.instance.getFilesWithVisibility(
|
|
|
- creationStartTime, creationEndTime, 1,
|
|
|
+ return FilesDB.instance.getFilesWithVisibility(creationStartTime,
|
|
|
+ creationEndTime, Configuration.instance.getUserID(), 1,
|
|
|
limit: limit, asc: asc);
|
|
|
},
|
|
|
reloadEvent: Bus.instance.on<FilesUpdatedEvent>().where((event) =>
|