mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-09 00:29:00 +01: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.relates_to") override val relatesTo: RelationDefaultContent? = null,
|
||||||
@Json(name = "m.new_content") override val newContent: Content? = 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. **/
|
/** The [VoiceBroadcastState] value. **/
|
||||||
@Json(name = "state") val voiceBroadcastStateStr: String = "",
|
@Json(name = "state") val voiceBroadcastStateStr: String = "",
|
||||||
/** The length of the voice chunks in seconds. **/
|
/** The length of the voice chunks in seconds. **/
|
||||||
|
@ -71,6 +71,7 @@ class StartVoiceBroadcastUseCase @Inject constructor(
|
|||||||
eventType = VoiceBroadcastConstants.STATE_ROOM_VOICE_BROADCAST_INFO,
|
eventType = VoiceBroadcastConstants.STATE_ROOM_VOICE_BROADCAST_INFO,
|
||||||
stateKey = session.myUserId,
|
stateKey = session.myUserId,
|
||||||
body = MessageVoiceBroadcastInfoContent(
|
body = MessageVoiceBroadcastInfoContent(
|
||||||
|
deviceId = session.sessionParams.deviceId,
|
||||||
voiceBroadcastStateStr = VoiceBroadcastState.STARTED.value,
|
voiceBroadcastStateStr = VoiceBroadcastState.STARTED.value,
|
||||||
chunkLength = chunkLength,
|
chunkLength = chunkLength,
|
||||||
).toContent()
|
).toContent()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user