Initial look at fixing issue where images are uploaded to the wrong album if a shared album conflicts with a local users album.
This commit is contained in:
@@ -46,8 +46,8 @@ class AlbumNotifier extends StateNotifier<List<Album>> {
|
||||
) =>
|
||||
_albumService.createAlbum(albumTitle, assets, []);
|
||||
|
||||
Future<Album?> getAlbumByName(String albumName, {bool remoteOnly = false}) =>
|
||||
_albumService.getAlbumByName(albumName, remoteOnly);
|
||||
Future<Album?> getAlbumByName(String albumName, {bool? remote, bool? shared}) =>
|
||||
_albumService.getAlbumByName(albumName, remote: remote, shared: shared);
|
||||
|
||||
/// Create an album on the server with the same name as the selected album for backup
|
||||
/// First this will check if the album already exists on the server with name
|
||||
@@ -55,7 +55,7 @@ class AlbumNotifier extends StateNotifier<List<Album>> {
|
||||
Future<void> createSyncAlbum(
|
||||
String albumName,
|
||||
) async {
|
||||
final album = await getAlbumByName(albumName, remoteOnly: true);
|
||||
final album = await getAlbumByName(albumName, remote: true, shared: false);
|
||||
if (album != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user