Skip to content

Commit

Permalink
fix: Remove unused conversation id [#WPB-14256] (#3183)
Browse files Browse the repository at this point in the history
* fix: Remove unused conversation id [#WPB-14256]

* Fix import
  • Loading branch information
m-zagorski authored Dec 17, 2024
1 parent 1ca6dfc commit 69621bc
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<RecentlyEndedCallMetadata>
suspend operator fun invoke(): Flow<RecentlyEndedCallMetadata>
}

class ObserveRecentlyEndedCallMetadataUseCaseImpl internal constructor(
private val callRepository: CallRepository,
) : ObserveRecentlyEndedCallMetadataUseCase {
override suspend fun invoke(conversationId: ConversationId): Flow<RecentlyEndedCallMetadata> {
override suspend fun invoke(): Flow<RecentlyEndedCallMetadata> {
return callRepository.observeRecentlyEndedCallMetadata()
}
}

0 comments on commit 69621bc

Please sign in to comment.