Don't start new calls in widget mode
In widget mode, it's the client's duty to start the call.
This commit is contained in:
parent
aa828fe9f5
commit
44e22e2684
2 changed files with 2 additions and 1 deletions
|
|
@ -30,6 +30,7 @@ import type { Room } from "matrix-js-sdk/src/models/room";
|
|||
import type { GroupCall } from "matrix-js-sdk/src/webrtc/groupCall";
|
||||
import { isLocalRoomId, createRoom, roomNameFromRoomId } from "../matrix-utils";
|
||||
import { translatedError } from "../TranslatedError";
|
||||
import { widget } from "../widget";
|
||||
|
||||
export interface GroupCallLoadState {
|
||||
loading: boolean;
|
||||
|
|
@ -89,6 +90,7 @@ export const useLoadGroupCall = (
|
|||
if (groupCall) return groupCall;
|
||||
|
||||
if (
|
||||
!widget &&
|
||||
room.currentState.mayClientSendStateEvent(
|
||||
EventType.GroupCallPrefix,
|
||||
client
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue