[PR #3244] fix(mobile): fix forgetting backup albums (#3108) #9903

Closed
opened 2026-02-05 14:12:41 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/3244

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/immich-app/immich/pull/3244 **State:** closed **Merged:** Yes --- Fix/workaround for #3108. It seems the bug is caused by a weird behaviour / bug in [photo_manager](https://pub.dev/packages/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.
OVERLORD added the pull-request label 2026-02-05 14:12:41 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#9903