mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix identical file added to album
This commit is contained in:
parent
3ad3fe5564
commit
0cd9dd5884
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ bool _isItemFileEqual(AlbumItem a, AlbumItem b) {
|
|||
|
||||
int _getItemHashCode(AlbumItem a) {
|
||||
if (a is AlbumFileItem) {
|
||||
return a.file.path.hashCode;
|
||||
return a.file.fileId?.hashCode ?? a.file.path.hashCode;
|
||||
} else {
|
||||
return a.hashCode;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue