mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Fix wrong display name used to construct AlbumShare
This commit is contained in:
parent
8f9879b1d4
commit
ee171b8187
2 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ class ListAlbumShareOutlierBloc extends Bloc<ListAlbumShareOutlierBlocEvent,
|
|||
.firstWhere((s) => s.shareWith == ev.album.albumFile!.ownerId);
|
||||
temp.add(AlbumShare(
|
||||
userId: ownerSharee.shareWith,
|
||||
displayName: ownerSharee.shareWithDisplayNameUnique,
|
||||
displayName: ownerSharee.label,
|
||||
));
|
||||
}
|
||||
return Map.fromEntries(temp.map((as) => MapEntry(as.userId, as)));
|
||||
|
|
|
@ -27,7 +27,7 @@ class ShareAlbumWithUser {
|
|||
shares: OrNull((album.shares ?? [])
|
||||
..add(AlbumShare(
|
||||
userId: sharee.shareWith,
|
||||
displayName: sharee.shareWithDisplayNameUnique,
|
||||
displayName: sharee.label,
|
||||
))),
|
||||
);
|
||||
await UpdateAlbum(albumRepo)(account, newAlbum);
|
||||
|
|
Loading…
Reference in a new issue