Merge pull request #7458 from vector-im/feature/fre/voice_broadcast_remove_useless_logs

[Voice Broadcast] Minor cleanup in GetOngoingVoiceBroadcastsUseCase
This commit is contained in:
Florian Renaud 2022-10-26 16:16:25 +02:00 committed by GitHub
commit 751afbdd7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,12 +31,11 @@ class GetOngoingVoiceBroadcastsUseCase @Inject constructor(
) {
fun execute(roomId: String): List<VoiceBroadcastEvent> {
println("## GetOngoingVoiceBroadcastsUseCase")
println("## GetOngoingVoiceBroadcastsUseCase activeSessionHolder $activeSessionHolder")
val session = activeSessionHolder.getSafeActiveSession()
println("## GetOngoingVoiceBroadcastsUseCase session $session")
val room = session?.getRoom(roomId) ?: error("Unknown roomId: $roomId")
println("## GetOngoingVoiceBroadcastsUseCase room $room")
val session = activeSessionHolder.getSafeActiveSession() ?: run {
Timber.d("## GetOngoingVoiceBroadcastsUseCase: no active session")
return emptyList()
}
val room = session.getRoom(roomId) ?: error("Unknown roomId: $roomId")
Timber.d("## GetLastVoiceBroadcastUseCase: get last voice broadcast in $roomId")