Skip to content

Commit

Permalink
fix bug: show all albums when Recent is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
Fynn Petersen-Frey committed Mar 1, 2023
1 parent 0abfae4 commit 1dca3c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mobile/lib/modules/album/services/album.service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ class AlbumService {
if (infos.excludedAlbumsIds.isNotEmpty) {
onDevice.removeWhere((e) => infos.excludedAlbumsIds.contains(e.id));
}
if (infos.selectedAlbumIds.isNotEmpty) {
if (infos.selectedAlbumIds.isNotEmpty &&
!infos.selectedAlbumIds.contains("isAll")) {
onDevice.removeWhere((e) => !infos.selectedAlbumIds.contains(e.id));
}
changes = await _syncService.syncLocalAlbumAssetsToDb(onDevice);
Expand Down

0 comments on commit 1dca3c8

Please sign in to comment.