Include device_id in voice broadcast info events (#9394)

This commit is contained in:
Michael Weimann 2022-10-12 13:24:30 +02:00 committed by GitHub
parent bac6e12946
commit 19bc3f1d9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 0 deletions

View file

@ -40,6 +40,7 @@ export enum VoiceBroadcastInfoState {
}
export interface VoiceBroadcastInfoEventContent {
device_id: string;
state: VoiceBroadcastInfoState;
chunk_length?: number;
["m.relates_to"]?: {

View file

@ -146,6 +146,7 @@ export class VoiceBroadcastRecording
this.infoEvent.getRoomId(),
VoiceBroadcastInfoEventType,
{
device_id: this.client.getDeviceId(),
state: VoiceBroadcastInfoState.Stopped,
["m.relates_to"]: {
rel_type: RelationType.Reference,

View file

@ -65,6 +65,7 @@ export const startNewVoiceBroadcastRecording = async (
roomId,
VoiceBroadcastInfoEventType,
{
device_id: client.getDeviceId(),
state: VoiceBroadcastInfoState.Started,
chunk_length: 300,
} as VoiceBroadcastInfoEventContent,