Skip to content

Commit 18aa59c

Browse files
committed
T20906162: Fix album not adding content
1 parent e788d8a commit 18aa59c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

iMEGA/Media Consumption/Album Library/AlbumContent/AlbumContentRouter.swift

+2-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ struct AlbumContentRouter: AlbumContentRouting {
7979
preferenceUseCase: PreferenceUseCase.default
8080
),
8181
appDelegateRouter: AppDelegateRouter()
82-
))
82+
),
83+
newAlbumPhotosToAdd: newAlbumPhotos)
8384
return AlbumContentViewController(viewModel: viewModel)
8485
}
8586

iMEGA/Media Consumption/Album Library/AlbumContent/AlbumContentViewModel.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ final class AlbumContentViewModel: ViewModelType {
117117
albumNameUseCase: some AlbumNameUseCaseProtocol,
118118
router: some AlbumContentRouting,
119119
overDiskQuotaChecker: some OverDiskQuotaChecking,
120-
newAlbumPhotosToAdd: [NodeEntity]? = nil,
120+
newAlbumPhotosToAdd: [NodeEntity]?,
121121
tracker: some AnalyticsTracking = DIContainer.tracker,
122122
albumContentDataProvider: some AlbumContentPhotoLibraryDataProviderProtocol = AlbumContentPhotoLibraryDataProvider(),
123123
albumRemoteFeatureFlagProvider: some AlbumRemoteFeatureFlagProviderProtocol = AlbumRemoteFeatureFlagProvider()

0 commit comments

Comments
 (0)