From 5bcf6c781ae037715ae809bad7671e30f336d4b7 Mon Sep 17 00:00:00 2001 From: ashilkn Date: Sat, 20 Aug 2022 12:38:35 +0530 Subject: [PATCH] fixed gallery update bug in files in location screen on delete --- .../search/collections/files_in_location_page.dart | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/lib/ui/viewer/search/collections/files_in_location_page.dart b/lib/ui/viewer/search/collections/files_in_location_page.dart index 966edf659..eccfa6b1e 100644 --- a/lib/ui/viewer/search/collections/files_in_location_page.dart +++ b/lib/ui/viewer/search/collections/files_in_location_page.dart @@ -47,16 +47,6 @@ class FilesInLocationPage extends StatelessWidget { EventType.deletedFromRemote, EventType.deletedFromEverywhere, }, - forceReloadEvents: [ - Bus.instance.on().where( - (event) => - event.updatedFiles.firstWhere( - (element) => element.uploadedFileID != null, - orElse: () => null, - ) != - null, - ), - ], tagPrefix: tagPrefix, selectedFiles: _selectedFiles, initialFiles: [locationSearchResult.files[0]],