0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-02-11 01:18:24 -05:00
immich/mobile/lib/providers
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
..
album fix(mobile): 14983 Images upload to shared album with common name (#15127) 2025-01-16 21:24:09 -06:00
asset_viewer feat(mobile): share to mechanism (#15229) 2025-01-16 21:20:44 -06:00
backup feat(album): album view sort order (#14648) 2024-12-16 16:11:48 +00:00
image feat(mobile): native_video_player (#12104) 2024-12-04 16:03:46 -05:00
map refactor(mobile): use repositories in a number of services (#12891) 2024-09-24 12:50:21 +00:00
search fix(mobile): search page (#13833) 2024-10-30 14:27:13 -05:00
activity.provider.dart
activity.provider.g.dart
activity_service.provider.dart refactor(mobile): more repositories (#12879) 2024-09-24 08:24:48 +02:00
activity_service.provider.g.dart refactor(mobile): use repositories in a number of services (#12891) 2024-09-24 12:50:21 +00:00
activity_statistics.provider.dart refactor(mobile): more repositories (#12879) 2024-09-24 08:24:48 +02:00
activity_statistics.provider.g.dart refactor(mobile): use repositories in a number of services (#12891) 2024-09-24 12:50:21 +00:00
api.provider.dart
api.provider.g.dart
app_life_cycle.provider.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
app_settings.provider.dart
app_settings.provider.g.dart
archive.provider.dart
asset.provider.dart fix(mobile): fixes on language change (#14089) 2024-11-19 12:09:29 -06:00
auth.provider.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
db.provider.dart
favorite.provider.dart chore(mobile): restrict isar use via CI checks (#12840) 2024-09-22 09:24:08 -04:00
gallery_permission.provider.dart
haptic_feedback.provider.dart
immich_logo_provider.dart
immich_logo_provider.g.dart
locale_provider.dart feat(mobile): exclude locales from overpass font (#14158) 2024-11-19 09:36:46 -06:00
memory.provider.dart
multiselect.provider.dart
network.provider.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
notification_permission.provider.dart
oauth.provider.dart
partner.provider.dart fix(mobile): unnecessary rebuilds from partner share notifier (#14170) 2024-11-17 12:04:55 -05:00
server_info.provider.dart feat(mobile): Auto switching server URLs (#14437) 2024-12-05 09:11:48 -06:00
shared_link.provider.dart
tab.provider.dart feat(mobile): new mobile UI (#12582) 2024-10-10 15:44:14 +07:00
theme.provider.dart refactor(mobile): refactor theme management (#14415) 2024-12-11 16:30:56 +00:00
trash.provider.dart fix(mobile): trash sorting order (#13299) 2024-10-10 08:52:12 +00:00
upload_profile_image.provider.dart
user.provider.dart
websocket.provider.dart chore(mobile): refactor authentication (#14322) 2024-11-26 12:43:44 -06:00