mirror of
https://github.com/vector-im/element-android.git
synced 2024-11-16 02:05:06 +08:00
Voice Broadcast - Add deviceId in state event content
This commit is contained in:
parent
1647fe233f
commit
64456860e2
@ -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 New Issue
Block a user