diff --git a/src/script/components/calling/GroupVideoGridTile.tsx b/src/script/components/calling/GroupVideoGridTile.tsx index a657d46bfc6..052fad5fb65 100644 --- a/src/script/components/calling/GroupVideoGridTile.tsx +++ b/src/script/components/calling/GroupVideoGridTile.tsx @@ -17,7 +17,7 @@ * */ -import React, {useState} from 'react'; +import React from 'react'; import {QualifiedId} from '@wireapp/api-client/lib/user'; import {TabIndex} from '@wireapp/react-ui-kit/lib/types/enums'; @@ -89,8 +89,6 @@ const GroupVideoGridTile: React.FC = ({ 'isSwitchingVideoResolution', ]); - const [isZoomedIn, setIsZoomedIn] = useState(false); - const {name} = useKoSubscribableChildren(participant?.user, ['name']); const sharesScreen = videoState === VIDEO_STATE.SCREENSHARE; @@ -108,24 +106,8 @@ const GroupVideoGridTile: React.FC = ({ } }; - const handleZoomClick = () => { - setIsZoomedIn(prev => !prev); - }; - const participantNameColor = getParticipantNameColor({isActivelySpeaking, isAudioEstablished}); - const actionItem = !minimized && sharesScreen && ( - - ); - const nameContainer = !minimized && (
= ({ tabIndex={isMaximized ? TabIndex.FOCUSABLE : TabIndex.UNFOCUSABLE} > {hasActiveVideo ? ( -
+
@@ -250,8 +231,6 @@ const GroupVideoGridTile: React.FC = ({
)} - {actionItem} - {nameContainer} {(hasPausedVideo || isSwitchingVideoResolution) && ( diff --git a/src/script/team/TeamState.ts b/src/script/team/TeamState.ts index 9e368138208..abbb2b2bf00 100644 --- a/src/script/team/TeamState.ts +++ b/src/script/team/TeamState.ts @@ -117,7 +117,9 @@ export class TeamState { () => this.teamFeatures()?.mls?.config.protocolToggleUsers.includes(this.userState.self().id) ?? false, ); - this.isConferenceCallingEnabled = ko.pureComputed(() => true); + this.isConferenceCallingEnabled = ko.pureComputed( + () => this.teamFeatures()?.conferenceCalling?.status === FeatureStatus.ENABLED, + ); this.isGuestLinkEnabled = ko.pureComputed( () => this.teamFeatures()?.conversationGuestLinks?.status === FeatureStatus.ENABLED,