mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-10 06:07:57 -06:00
feat: finished new logging feature
This commit is contained in:
@@ -32,7 +32,7 @@ class ConsumptionChangeNotifier extends ChangeNotifier {
|
||||
return [];
|
||||
}
|
||||
final consumptionDirectory =
|
||||
await FileService.getConsumptionDirectory(userId: userId);
|
||||
await FileService.instance.getConsumptionDirectory(userId: userId);
|
||||
final List<File> localFiles = [];
|
||||
for (final file in files) {
|
||||
if (!file.path.startsWith(consumptionDirectory.path)) {
|
||||
@@ -53,7 +53,7 @@ class ConsumptionChangeNotifier extends ChangeNotifier {
|
||||
required String userId,
|
||||
}) async {
|
||||
final consumptionDirectory =
|
||||
await FileService.getConsumptionDirectory(userId: userId);
|
||||
await FileService.instance.getConsumptionDirectory(userId: userId);
|
||||
if (file.path.startsWith(consumptionDirectory.path)) {
|
||||
await file.delete();
|
||||
}
|
||||
@@ -70,8 +70,8 @@ class ConsumptionChangeNotifier extends ChangeNotifier {
|
||||
}
|
||||
|
||||
Future<List<File>> _getCurrentFiles(String userId) async {
|
||||
final directory = await FileService.getConsumptionDirectory(userId: userId);
|
||||
final files = await FileService.getAllFiles(directory);
|
||||
return files;
|
||||
final directory =
|
||||
await FileService.instance.getConsumptionDirectory(userId: userId);
|
||||
return await FileService.instance.getAllFiles(directory);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,6 @@ class _EventListenerShellState extends State<EventListenerShell>
|
||||
if (!currentUser.paperlessUser.canViewInbox || _inboxTimer != null) {
|
||||
return;
|
||||
}
|
||||
cubit.refreshItemsInInboxCount(false);
|
||||
_inboxTimer = Timer.periodic(30.seconds, (_) {
|
||||
cubit.refreshItemsInInboxCount(false);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user