0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-21 00:52:43 -05:00
immich/mobile/lib/interfaces
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.interface.dart refactor(mobile): more repositories (#12879) 2024-09-24 08:24:48 +02:00
album.interface.dart fix(mobile): 14983 Images upload to shared album with common name (#15127) 2025-01-16 21:24:09 -06:00
album_api.interface.dart feat(album): album view sort order (#14648) 2024-12-16 16:11:48 +00:00
album_media.interface.dart refactor(mobile): encapsulate most access to photomanager in repository (#12754) 2024-09-18 17:15:52 +02:00
asset.interface.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
asset_api.interface.dart refactor(mobile): use repositories in a number of services (#12891) 2024-09-24 12:50:21 +00:00
asset_media.interface.dart fix(mobile): incorrect filename is retrieved during upload (#12990) 2024-09-27 22:28:31 +07:00
auth.interface.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
auth_api.interface.dart chore(mobile): refactor authentication (#14322) 2024-11-26 12:43:44 -06:00
backup.interface.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
database.interface.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
download.interface.dart feat(mobile): enhance download operations (#12973) 2024-09-29 08:22:02 +00:00
etag.interface.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
exif_info.interface.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
file_media.interface.dart fix(mobile): Fix minor issues with downloading assets (#13609) 2024-10-20 12:56:02 -05:00
network.interface.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
partner_api.interface.dart refactor(mobile): use repositories in a number of services (#12891) 2024-09-24 12:50:21 +00:00
person_api.interface.dart refactor(mobile): use repositories in a number of services (#12891) 2024-09-24 12:50:21 +00:00
share_handler.interface.dart feat(mobile): share to mechanism (#15229) 2025-01-16 21:20:44 -06:00
upload.interface.dart feat(mobile): share to mechanism (#15229) 2025-01-16 21:20:44 -06:00
user.interface.dart refactor(mobile): DB repository for asset, backup, sync service (#12953) 2024-09-30 21:37:30 +07:00
user_api.interface.dart refactor(mobile): use repositories in a number of services (#12891) 2024-09-24 12:50:21 +00:00