Merge pull request #2639 from nextcloud/fix/2638/wrong-dateutils-injection

RepositoryModule: fix wrong injection for dateUtils
This commit is contained in:
Andy Scherzinger 2022-12-19 18:13:42 +01:00 committed by GitHub
commit 33dd8fb7cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -48,21 +48,17 @@ import com.nextcloud.talk.utils.database.user.CurrentUserProviderNew
import dagger.Module
import dagger.Provides
import okhttp3.OkHttpClient
import javax.inject.Inject
@Module
class RepositoryModule {
@Inject
lateinit var dateUtils: DateUtils
@Provides
fun provideConversationsRepository(ncApi: NcApi, userProvider: CurrentUserProviderNew): ConversationsRepository {
return ConversationsRepositoryImpl(ncApi, userProvider)
}
@Provides
fun provideSharedItemsRepository(ncApi: NcApi): SharedItemsRepository {
fun provideSharedItemsRepository(ncApi: NcApi, dateUtils: DateUtils): SharedItemsRepository {
return SharedItemsRepositoryImpl(ncApi, dateUtils)
}