Voice Broadcast - Remove check on voice message minimum duration
This commit is contained in:
parent
def9fc07bb
commit
92bd8cdcfe
@ -93,13 +93,11 @@ 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,
|
roomIds = emptySet(),
|
||||||
roomIds = emptySet(),
|
relatesTo = RelationDefaultContent(RelationType.REFERENCE, referenceEventId)
|
||||||
relatesTo = RelationDefaultContent(RelationType.REFERENCE, referenceEventId)
|
)
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user