mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix(mobile): asset state change not updated in gallery app bar (#4441)
This commit is contained in:
parent
18fcca2884
commit
5dacea6f74
3 changed files with 14 additions and 10 deletions
|
|
@ -200,6 +200,12 @@ final assetDetailProvider =
|
|||
}
|
||||
});
|
||||
|
||||
final assetWatcher =
|
||||
StreamProvider.autoDispose.family<Asset?, Asset>((ref, asset) {
|
||||
final db = ref.watch(dbProvider);
|
||||
return db.assets.watchObject(asset.id, fireImmediately: true);
|
||||
});
|
||||
|
||||
final assetsProvider =
|
||||
StreamProvider.family<RenderList, int?>((ref, userId) async* {
|
||||
if (userId == null) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue