mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-22 06:59:21 +01:00
Fix more files are processed than necessary
This commit is contained in:
parent
35e49c2bfd
commit
e58d28ee57
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ class AddToAlbum {
|
||||||
|
|
||||||
if (album.shares?.isNotEmpty == true) {
|
if (album.shares?.isNotEmpty == true) {
|
||||||
final newFiles =
|
final newFiles =
|
||||||
items.whereType<AlbumFileItem>().map((e) => e.file).toList();
|
addItems.whereType<AlbumFileItem>().map((e) => e.file).toList();
|
||||||
if (newFiles.isNotEmpty) {
|
if (newFiles.isNotEmpty) {
|
||||||
await _shareFiles(account, newAlbum, newFiles);
|
await _shareFiles(account, newAlbum, newFiles);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue