diff --git a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/call/usecase/ObserveRecentlyEndedCallMetadataUseCase.kt b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/call/usecase/ObserveRecentlyEndedCallMetadataUseCase.kt index d1a9de46bcf..3f1c717e7a6 100644 --- a/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/call/usecase/ObserveRecentlyEndedCallMetadataUseCase.kt +++ b/logic/src/commonMain/kotlin/com/wire/kalium/logic/feature/call/usecase/ObserveRecentlyEndedCallMetadataUseCase.kt @@ -20,20 +20,19 @@ package com.wire.kalium.logic.feature.call.usecase import com.wire.kalium.logic.data.call.CallRepository import com.wire.kalium.logic.data.call.RecentlyEndedCallMetadata import kotlinx.coroutines.flow.Flow -import com.wire.kalium.logic.data.id.ConversationId /** * Use case to observe recently ended call metadata. This gives us all metadata assigned to a call. * Used mainly for analytics. */ interface ObserveRecentlyEndedCallMetadataUseCase { - suspend operator fun invoke(conversationId: ConversationId): Flow + suspend operator fun invoke(): Flow } class ObserveRecentlyEndedCallMetadataUseCaseImpl internal constructor( private val callRepository: CallRepository, ) : ObserveRecentlyEndedCallMetadataUseCase { - override suspend fun invoke(conversationId: ConversationId): Flow { + override suspend fun invoke(): Flow { return callRepository.observeRecentlyEndedCallMetadata() } }