File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
vector/src/main/java/im/vector/app/features/voicebroadcast/usecase Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -93,13 +93,11 @@ class StartVoiceBroadcastUseCase @Inject constructor(
93
93
" Voice message.${voiceMessageFile.extension} "
94
94
)
95
95
val audioType = outputFileUri.toMultiPickerAudioType(context) ? : return
96
- if (audioType.duration > 1000 ) {
97
- room.sendService().sendMedia(
98
- attachment = audioType.toContentAttachmentData(isVoiceMessage = true ),
99
- compressBeforeSending = false ,
100
- roomIds = emptySet(),
101
- relatesTo = RelationDefaultContent (RelationType .REFERENCE , referenceEventId)
102
- )
103
- }
96
+ room.sendService().sendMedia(
97
+ attachment = audioType.toContentAttachmentData(isVoiceMessage = true ),
98
+ compressBeforeSending = false ,
99
+ roomIds = emptySet(),
100
+ relatesTo = RelationDefaultContent (RelationType .REFERENCE , referenceEventId)
101
+ )
104
102
}
105
103
}
You can’t perform that action at this time.
0 commit comments