mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
Fix ResyncAlbum breaks when a file got no fileid
This commit is contained in:
parent
9b1b71e949
commit
967bb03aee
1 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
|||
import 'package:collection/collection.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:nc_photos/account.dart';
|
||||
import 'package:nc_photos/debug_util.dart';
|
||||
|
@ -25,7 +26,11 @@ class ResyncAlbum {
|
|||
|
||||
final files = await FindFile(_c)(
|
||||
account,
|
||||
items.whereType<AlbumFileItem>().map((i) => i.file.fileId!).toList(),
|
||||
items
|
||||
.whereType<AlbumFileItem>()
|
||||
.map((i) => i.file.fileId)
|
||||
.whereNotNull()
|
||||
.toList(),
|
||||
onFileNotFound: (_) {},
|
||||
);
|
||||
final fileIt = files.iterator;
|
||||
|
|
Loading…
Reference in a new issue