Resume voice broadcast on load (#9475)

This commit is contained in:
Michael Weimann 2022-10-21 09:30:02 +02:00 committed by GitHub
parent 493ee425b7
commit 5f59ce182e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 554 additions and 22 deletions

View file

@ -22,7 +22,8 @@ import { mkEvent } from "../../test-utils";
export const mkVoiceBroadcastInfoStateEvent = (
roomId: string,
state: VoiceBroadcastInfoState,
sender: string,
senderId: string,
senderDeviceId: string,
startedInfoEvent?: MatrixEvent,
): MatrixEvent => {
const relationContent = {};
@ -37,11 +38,12 @@ export const mkVoiceBroadcastInfoStateEvent = (
return mkEvent({
event: true,
room: roomId,
user: sender,
user: senderId,
type: VoiceBroadcastInfoEventType,
skey: sender,
skey: senderId,
content: {
state,
device_id: senderDeviceId,
...relationContent,
},
});