Initial PTT designs

This commit is contained in:
Robert Long
2022-04-22 18:05:48 -07:00
parent fc1aaf02bf
commit 38f9a79bd3
13 changed files with 277 additions and 24 deletions

View File

@@ -76,7 +76,7 @@ export function isLocalRoomId(roomId) {
return parts[1] === defaultHomeserverHost;
}
export async function createRoom(client, name) {
export async function createRoom(client, name, isPtt = false) {
const { room_id, room_alias } = await client.createRoom({
visibility: "private",
preset: "public_chat",
@@ -107,9 +107,12 @@ export async function createRoom(client, name) {
},
});
console.log({ isPtt });
await client.createGroupCall(
room_id,
GroupCallType.Video,
isPtt,
GroupCallIntent.Prompt
);