fixed gallery update bug in files in location screen on delete

This commit is contained in:
ashilkn 2022-08-20 12:38:35 +05:30
parent 1efcd0fa27
commit 5bcf6c781a

View file

@ -47,16 +47,6 @@ class FilesInLocationPage extends StatelessWidget {
EventType.deletedFromRemote,
EventType.deletedFromEverywhere,
},
forceReloadEvents: [
Bus.instance.on<FilesUpdatedEvent>().where(
(event) =>
event.updatedFiles.firstWhere(
(element) => element.uploadedFileID != null,
orElse: () => null,
) !=
null,
),
],
tagPrefix: tagPrefix,
selectedFiles: _selectedFiles,
initialFiles: [locationSearchResult.files[0]],