mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix outdated albums not getting updated to cache correctly
This commit is contained in:
parent
c62af9941b
commit
2291e3b158
1 changed files with 3 additions and 1 deletions
|
@ -92,7 +92,9 @@ class CachedAlbumRepo2 implements AlbumRepo2 {
|
|||
// query remote
|
||||
final outdated = [
|
||||
...failed,
|
||||
...cachedGroup[false]?.map((e) => e.albumFile!) ?? const <File>[],
|
||||
...cachedGroup[false]?.map((e) =>
|
||||
albumFiles.firstWhere(e.albumFile!.compareServerIdentity)) ??
|
||||
const <File>[],
|
||||
];
|
||||
final remote =
|
||||
await remoteDataSrc.getAlbums(account, outdated, onError: onError);
|
||||
|
|
Loading…
Reference in a new issue