immich
immich copied to clipboard
fix(mobile): fix forgetting backup albums (#3108)
Fix/workaround for #3108. It seems the bug is caused by a weird behaviour / bug in photo_manager: Sometimes AssetPathEntity.fromId throws even when called with a valid asset id (say one returned from a previous call to PhotoManager.getAssetPathList).
This PR works around that by looking the assets up in a previously obtained map instead of calling AssetPathEntity.fromId.
How has this been tested
Manually, by deploying the patched app to my phone with flutter run and then going through the repro steps.
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| immich | ⬜️ Ignored (Inspect) | Jul 13, 2023 8:24pm |
Can you add a few lines to the PR description on how this change has been tested
Can you add a few lines to the PR description on how this change has been tested
Added. Is it sufficient?