0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-18 01:24:26 -05:00
immich/mobile/lib/repositories
Tom Graham efbc0cb192
fix(mobile): 14983 Images upload to shared album with common name (#15127)
* Initial look at fixing issue where images are uploaded to the wrong album if a shared album conflicts with a local users album.

* Use owner instead of shared flag when fetching albums.

* Fix issue with refreshRemoteAlbums getting shared items twice and removed incorrect isShared comment.

Using `getAll(shared: true)` gets all shared albums the user can access (regardless of owner, despite the previous comment).

Using `getAll(shared: null)` gets all albums (incuding shared = true and shared = false). I presume the intent here was to get albums that were shared (and not mine), and not shared (ie: mine), but the logic is way off. It also just then combines them - so makes more sense to just get them in a single call.

* Fix formatting.

* Fixed tests.

* Revert "Fixed tests."

This reverts commit c38f5af5ac.

* Revert "Fix issue with refreshRemoteAlbums getting shared items twice and removed incorrect isShared comment."

This reverts commit 979ce90abf.

* Added comments to explain why filters behave the way they do for getAll() albums.

---------

Co-authored-by: Tom graham <tomg@questps.com.au>
Co-authored-by: Alex <alex.tran1502@gmail.com>
2025-01-16 21:24:09 -06:00
..
activity_api.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
album.repository.dart fix(mobile): 14983 Images upload to shared album with common name (#15127) 2025-01-16 21:24:09 -06:00
album_api.repository.dart feat(album): album view sort order (#14648) 2024-12-16 16:11:48 +00:00
album_media.repository.dart fix(mobile): keep empty album as selected target (#14778) 2024-12-18 11:10:29 -06:00
api.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
asset.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
asset_api.repository.dart refactor: rename searchMetadata to searchAssets (#14151) 2024-11-20 14:47:25 -05:00
asset_media.repository.dart fix(mobile): incorrect filename is retrieved during upload (#12990) 2024-09-27 22:28:31 +07:00
auth.repository.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
auth_api.repository.dart chore(mobile): Add const linter (#14447) 2024-12-02 15:33:44 +00:00
backup.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
database.repository.dart chore(mobile): refactor authentication (#14322) 2024-11-26 12:43:44 -06:00
download.repository.dart feat(mobile): enhance download operations (#12973) 2024-09-29 08:22:02 +00:00
etag.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
exif_info.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
file_media.repository.dart fix(mobile): Fix minor issues with downloading assets (#13609) 2024-10-20 12:56:02 -05:00
network.repository.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
partner_api.repository.dart feat(mobile): new mobile UI (#12582) 2024-10-10 15:44:14 +07:00
permission.repository.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
person_api.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
share_handler.repository.dart feat(mobile): share to mechanism (#15229) 2025-01-16 21:20:44 -06:00
upload.repository.dart feat(mobile): share to mechanism (#15229) 2025-01-16 21:20:44 -06:00
user.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
user_api.repository.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00