Merge pull request #1123 from robintown/connection-indicators
Hide connection quality indicators behind a developer setting
This commit is contained in:
@@ -53,7 +53,10 @@ import {
|
||||
useVideoGridLayout,
|
||||
TileDescriptor,
|
||||
} from "../video-grid/VideoGrid";
|
||||
import { useShowInspector } from "../settings/useSetting";
|
||||
import {
|
||||
useShowInspector,
|
||||
useShowConnectionStats,
|
||||
} from "../settings/useSetting";
|
||||
import { useModalTriggerState } from "../Modal";
|
||||
import { PosthogAnalytics } from "../analytics/PosthogAnalytics";
|
||||
import { useUrlParams } from "../UrlParams";
|
||||
@@ -152,6 +155,7 @@ export function InCallView({
|
||||
);
|
||||
|
||||
const [showInspector] = useShowInspector();
|
||||
const [showConnectionStats] = useShowConnectionStats();
|
||||
|
||||
const { hideScreensharing } = useUrlParams();
|
||||
|
||||
@@ -255,6 +259,7 @@ export function InCallView({
|
||||
key={maximisedParticipant.id}
|
||||
data={maximisedParticipant.data}
|
||||
showSpeakingIndicator={false}
|
||||
showConnectionStats={showConnectionStats}
|
||||
/>
|
||||
);
|
||||
}
|
||||
@@ -268,6 +273,7 @@ export function InCallView({
|
||||
{(props) => (
|
||||
<VideoTile
|
||||
showSpeakingIndicator={items.length > 2}
|
||||
showConnectionStats={showConnectionStats}
|
||||
{...props}
|
||||
ref={props.ref as Ref<HTMLDivElement>}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user