mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-08 18:28:53 +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
|
// query remote
|
||||||
final outdated = [
|
final outdated = [
|
||||||
...failed,
|
...failed,
|
||||||
...cachedGroup[false]?.map((e) => e.albumFile!) ?? const <File>[],
|
...cachedGroup[false]?.map((e) =>
|
||||||
|
albumFiles.firstWhere(e.albumFile!.compareServerIdentity)) ??
|
||||||
|
const <File>[],
|
||||||
];
|
];
|
||||||
final remote =
|
final remote =
|
||||||
await remoteDataSrc.getAlbums(account, outdated, onError: onError);
|
await remoteDataSrc.getAlbums(account, outdated, onError: onError);
|
||||||
|
|
Loading…
Reference in a new issue