1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-31 13:44:28 +03:00

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
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,
},
});