mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 11:26:01 +03:00
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:
commit
751afbdd7b
1 changed files with 5 additions and 6 deletions
|
@ -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")
|
||||
|
||||
|
|
Loading…
Reference in a new issue