VoiceBroadcast - Ignore voice broadcast info with empty content (eg. redacted)

This commit is contained in:
Florian Renaud 2022-10-20 11:24:45 +02:00
parent f05f0a85b0
commit 6d6b4e5208
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ class StartVoiceBroadcastUseCase @Inject constructor(
QueryStringValue.IsNotEmpty
)
.mapNotNull { it.asVoiceBroadcastEvent() }
.filter { it.content?.voiceBroadcastState != VoiceBroadcastState.STOPPED }
.filter { it.content?.voiceBroadcastState != null && it.content?.voiceBroadcastState != VoiceBroadcastState.STOPPED }
if (onGoingVoiceBroadcastEvents.isEmpty()) {
startVoiceBroadcast(room)