Voice Broadcast - Remove check on voice message minimum duration

This commit is contained in:
Florian Renaud 2022-10-18 13:09:48 +02:00
parent def9fc07bb
commit 92bd8cdcfe

View File

@ -93,7 +93,6 @@ class StartVoiceBroadcastUseCase @Inject constructor(
"Voice message.${voiceMessageFile.extension}" "Voice message.${voiceMessageFile.extension}"
) )
val audioType = outputFileUri.toMultiPickerAudioType(context) ?: return val audioType = outputFileUri.toMultiPickerAudioType(context) ?: return
if (audioType.duration > 1000) {
room.sendService().sendMedia( room.sendService().sendMedia(
attachment = audioType.toContentAttachmentData(isVoiceMessage = true), attachment = audioType.toContentAttachmentData(isVoiceMessage = true),
compressBeforeSending = false, compressBeforeSending = false,
@ -101,5 +100,4 @@ class StartVoiceBroadcastUseCase @Inject constructor(
relatesTo = RelationDefaultContent(RelationType.REFERENCE, referenceEventId) relatesTo = RelationDefaultContent(RelationType.REFERENCE, referenceEventId)
) )
} }
}
} }