1
0
mirror of https://github.com/immich-app/immich.git synced 2025-08-09 23:17:29 +02:00

fix(mobile): add user to album using new dto property (#9312)

* fix(mobile): add user to album using new DTO property

* fix(mobile): add user to album using new DTO property
This commit is contained in:
Alex
2024-05-07 15:00:38 -05:00
committed by GitHub
parent 78b5990d2a
commit ee6995783f
2 changed files with 5 additions and 2 deletions

View File

@@ -279,9 +279,13 @@ class AlbumService {
Album album,
) async {
try {
final List<AlbumUserAddDto> albumUsers = sharedUserIds
.map((userId) => AlbumUserAddDto(userId: userId))
.toList();
final result = await _apiService.albumApi.addUsersToAlbum(
album.remoteId!,
AddUsersDto(sharedUserIds: sharedUserIds),
AddUsersDto(albumUsers: albumUsers),
);
if (result != null) {
album.sharedUsers