From 69621bc36e55460ea5c6d33090c8af2d9b7f9513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Zag=C3=B3rski?= Date: Tue, 17 Dec 2024 13:19:38 +0100 Subject: [PATCH] fix: Remove unused conversation id [#WPB-14256] (#3183) * fix: Remove unused conversation id [#WPB-14256] * Fix import --- .../call/usecase/ObserveRecentlyEndedCallMetadataUseCase.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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() } }