mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 03:48:12 +03:00
Voice Broadcast - Add deviceId in state event content
This commit is contained in:
parent
1647fe233f
commit
64456860e2
2 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,8 @@ data class MessageVoiceBroadcastInfoContent(
|
|||
@Json(name = "m.relates_to") override val relatesTo: RelationDefaultContent? = null,
|
||||
@Json(name = "m.new_content") override val newContent: Content? = null,
|
||||
|
||||
/** The device from which the broadcast has been started. */
|
||||
@Json(name = "device_id") val deviceId: String? = null,
|
||||
/** The [VoiceBroadcastState] value. **/
|
||||
@Json(name = "state") val voiceBroadcastStateStr: String = "",
|
||||
/** The length of the voice chunks in seconds. **/
|
||||
|
|
|
@ -71,6 +71,7 @@ class StartVoiceBroadcastUseCase @Inject constructor(
|
|||
eventType = VoiceBroadcastConstants.STATE_ROOM_VOICE_BROADCAST_INFO,
|
||||
stateKey = session.myUserId,
|
||||
body = MessageVoiceBroadcastInfoContent(
|
||||
deviceId = session.sessionParams.deviceId,
|
||||
voiceBroadcastStateStr = VoiceBroadcastState.STARTED.value,
|
||||
chunkLength = chunkLength,
|
||||
).toContent()
|
||||
|
|
Loading…
Reference in a new issue