Get new group calls working

This commit is contained in:
Robert Long
2021-09-29 16:23:18 -07:00
parent 5e4736eba5
commit b3325faeeb
3 changed files with 24 additions and 35 deletions

View File

@@ -22,6 +22,10 @@ import ColorHash from "color-hash";
import styles from "./Home.module.css";
import { FieldRow, InputField, Button, ErrorMessage } from "./Input";
import { Center, Content, Modal } from "./Layout";
import {
GroupCallIntent,
GroupCallType,
} from "matrix-js-sdk/src/browser-index";
const colorHash = new ColorHash({ lightness: 0.3 });
@@ -75,6 +79,12 @@ export function Home({ client, onLogout }) {
});
}
await client.createGroupCall(
room_id,
GroupCallType.Video,
GroupCallIntent.Prompt
);
history.push(`/room/${room_id}`);
}