Merge remote-tracking branch 'upstream/livekit' into SimonBrandner/feat/hash
This commit is contained in:
@@ -218,7 +218,7 @@ export const ClientProvider: FC<Props> = ({ children }) => {
|
||||
});
|
||||
} else {
|
||||
clearSession();
|
||||
setInitClientState(undefined);
|
||||
setInitClientState(null);
|
||||
}
|
||||
},
|
||||
[initClientState?.client]
|
||||
@@ -233,7 +233,7 @@ export const ClientProvider: FC<Props> = ({ children }) => {
|
||||
await client.logout(true);
|
||||
await client.clearStores();
|
||||
clearSession();
|
||||
setInitClientState(undefined);
|
||||
setInitClientState(null);
|
||||
history.push("/");
|
||||
PosthogAnalytics.instance.setRegistrationType(RegistrationType.Guest);
|
||||
}, [history, initClientState?.client]);
|
||||
|
||||
@@ -73,6 +73,7 @@ export function ErrorView({ error }: ErrorViewProps) {
|
||||
? error.translatedMessage
|
||||
: error.message}
|
||||
</p>
|
||||
<RageshakeButton description={`***Error View***: ${error.message}`} />
|
||||
{location.pathname === "/" ? (
|
||||
<Button
|
||||
size="lg"
|
||||
|
||||
@@ -139,7 +139,7 @@ export function GroupCallView({
|
||||
}
|
||||
|
||||
if (videoInput === null) {
|
||||
latestMuteStates.current!.video.setEnabled?.(true);
|
||||
latestMuteStates.current!.video.setEnabled?.(false);
|
||||
} else {
|
||||
const deviceId = await findDeviceByName(
|
||||
videoInput,
|
||||
|
||||
@@ -54,7 +54,7 @@ export function useSubmitRageshake(): {
|
||||
|
||||
// The value of the context is the whole tuple returned from setState,
|
||||
// so we just want the current state.
|
||||
const [inspectorState] = useContext(InspectorContext);
|
||||
const [inspectorState] = useContext(InspectorContext) ?? [];
|
||||
|
||||
const [{ sending, sent, error }, setState] = useState<{
|
||||
sending: boolean;
|
||||
|
||||
@@ -165,6 +165,7 @@ export const widget: WidgetHelpers | null = (() => {
|
||||
// element-web to use waitForIFrameLoad=false. Once that change has rolled out,
|
||||
// we can just start the client after we've fetched the config.
|
||||
livekitServiceURL: undefined,
|
||||
useLivekitForGroupCalls: true,
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user