Voice Broadcast - Remove check on voice message minimum duration
This commit is contained in:
parent
def9fc07bb
commit
92bd8cdcfe
@ -93,7 +93,6 @@ class StartVoiceBroadcastUseCase @Inject constructor(
|
||||
"Voice message.${voiceMessageFile.extension}"
|
||||
)
|
||||
val audioType = outputFileUri.toMultiPickerAudioType(context) ?: return
|
||||
if (audioType.duration > 1000) {
|
||||
room.sendService().sendMedia(
|
||||
attachment = audioType.toContentAttachmentData(isVoiceMessage = true),
|
||||
compressBeforeSending = false,
|
||||
@ -101,5 +100,4 @@ class StartVoiceBroadcastUseCase @Inject constructor(
|
||||
relatesTo = RelationDefaultContent(RelationType.REFERENCE, referenceEventId)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user