mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Rename const DEFAULT_CHUNK_LENGTH_IN_SECONDS
This commit is contained in:
parent
92bd8cdcfe
commit
b9335c6065
2 changed files with 2 additions and 2 deletions
|
@ -22,5 +22,5 @@ object VoiceBroadcastConstants {
|
|||
const val STATE_ROOM_VOICE_BROADCAST_INFO = "io.element.voice_broadcast_info"
|
||||
|
||||
/** Default voice broadcast chunk duration, in seconds. */
|
||||
const val DEFAULT_CHUNK_LENGTH = 30
|
||||
const val DEFAULT_CHUNK_LENGTH_IN_SECONDS = 30
|
||||
}
|
||||
|
|
|
@ -65,7 +65,7 @@ class StartVoiceBroadcastUseCase @Inject constructor(
|
|||
|
||||
private suspend fun startVoiceBroadcast(room: Room) {
|
||||
Timber.d("## StartVoiceBroadcastUseCase: Send new voice broadcast info state event")
|
||||
val chunkLength = VoiceBroadcastConstants.DEFAULT_CHUNK_LENGTH // Todo Get the length from the room settings
|
||||
val chunkLength = VoiceBroadcastConstants.DEFAULT_CHUNK_LENGTH_IN_SECONDS // Todo Get the length from the room settings
|
||||
val eventId = room.stateService().sendStateEvent(
|
||||
eventType = VoiceBroadcastConstants.STATE_ROOM_VOICE_BROADCAST_INFO,
|
||||
stateKey = session.myUserId,
|
||||
|
|
Loading…
Reference in a new issue