diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/DefaultSession.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/DefaultSession.kt index 1c2e2bb266..826225cc08 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/DefaultSession.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/DefaultSession.kt @@ -128,8 +128,8 @@ internal class DefaultSession @Inject constructor( private val accountService: Lazy, private val eventService: Lazy, private val contentScannerService: Lazy, - private val identityService: IdentityService, - private val integrationManagerService: IntegrationManagerService, + private val identityService: Lazy, + private val integrationManagerService: Lazy, private val thirdPartyService: Lazy, private val callSignalingService: Lazy, private val spaceService: Lazy, @@ -285,7 +285,7 @@ internal class DefaultSession @Inject constructor( override fun contentScannerService(): ContentScannerService = contentScannerService.get() - override fun identityService() = identityService + override fun identityService(): IdentityService = identityService.get() override fun fileService(): FileService = defaultFileService.get() @@ -295,7 +295,7 @@ internal class DefaultSession @Inject constructor( override fun mediaService(): MediaService = mediaService.get() - override fun integrationManagerService() = integrationManagerService + override fun integrationManagerService(): IntegrationManagerService = integrationManagerService.get() override fun callSignalingService(): CallSignalingService = callSignalingService.get()