From c67a3462187c2b6be887542c1aa1237431e677f2 Mon Sep 17 00:00:00 2001 From: ayumi-signal <143036029+ayumi-signal@users.noreply.github.com> Date: Tue, 28 May 2024 19:51:55 -0700 Subject: [PATCH] Enable calling raise hand --- ts/components/CallManager.stories.tsx | 1 - ts/components/CallManager.tsx | 5 ----- ts/components/CallScreen.stories.tsx | 1 - ts/components/CallScreen.tsx | 4 +--- ts/state/smart/CallManager.tsx | 2 -- ts/util/isGroupCallRaiseHandEnabled.ts | 8 -------- 6 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 ts/util/isGroupCallRaiseHandEnabled.ts diff --git a/ts/components/CallManager.stories.tsx b/ts/components/CallManager.stories.tsx index 6c8451e895..b616216e41 100644 --- a/ts/components/CallManager.stories.tsx +++ b/ts/components/CallManager.stories.tsx @@ -75,7 +75,6 @@ const createProps = (storyProps: Partial = {}): PropsType => ({ i18n, incomingCall: null, callLink: undefined, - isGroupCallRaiseHandEnabled: true, me: { ...getDefaultConversation({ color: AvatarColors[0], diff --git a/ts/components/CallManager.tsx b/ts/components/CallManager.tsx index e404474960..422bcadee2 100644 --- a/ts/components/CallManager.tsx +++ b/ts/components/CallManager.tsx @@ -106,7 +106,6 @@ export type PropsType = { denyUser: (payload: PendingUserActionPayloadType) => void; hasInitialLoadCompleted: boolean; i18n: LocalizerType; - isGroupCallRaiseHandEnabled: boolean; me: ConversationType; notifyForCall: ( conversationId: string, @@ -166,7 +165,6 @@ function ActiveCallManager({ denyUser, hangUpActiveCall, i18n, - isGroupCallRaiseHandEnabled, getGroupCallVideoFrameSource, getPresentingSources, me, @@ -429,7 +427,6 @@ function ActiveCallManager({ i18n={i18n} imageDataCache={imageDataCache} isCallLinkAdmin={isCallLinkAdmin} - isGroupCallRaiseHandEnabled={isGroupCallRaiseHandEnabled} me={me} openSystemPreferencesAction={openSystemPreferencesAction} renderEmojiPicker={renderEmojiPicker} @@ -504,7 +501,6 @@ export function CallManager({ i18n, incomingCall, isConversationTooBigToRing, - isGroupCallRaiseHandEnabled, me, notifyForCall, openSystemPreferencesAction, @@ -593,7 +589,6 @@ export function CallManager({ getPresentingSources={getPresentingSources} hangUpActiveCall={hangUpActiveCall} i18n={i18n} - isGroupCallRaiseHandEnabled={isGroupCallRaiseHandEnabled} me={me} openSystemPreferencesAction={openSystemPreferencesAction} pauseVoiceNotePlayer={pauseVoiceNotePlayer} diff --git a/ts/components/CallScreen.stories.tsx b/ts/components/CallScreen.stories.tsx index b800bdc625..321c3577df 100644 --- a/ts/components/CallScreen.stories.tsx +++ b/ts/components/CallScreen.stories.tsx @@ -193,7 +193,6 @@ const createProps = ( i18n, imageDataCache: React.createRef(), isCallLinkAdmin: true, - isGroupCallRaiseHandEnabled: true, me: getDefaultConversation({ color: AvatarColors[1], id: '6146087e-f7ef-457e-9a8d-47df1fdd6b25', diff --git a/ts/components/CallScreen.tsx b/ts/components/CallScreen.tsx index ebf99b720e..7ab1d4fc16 100644 --- a/ts/components/CallScreen.tsx +++ b/ts/components/CallScreen.tsx @@ -103,7 +103,6 @@ export type PropsType = { i18n: LocalizerType; imageDataCache: React.RefObject; isCallLinkAdmin: boolean; - isGroupCallRaiseHandEnabled: boolean; me: ConversationType; openSystemPreferencesAction: () => unknown; renderReactionPicker: ( @@ -195,7 +194,6 @@ export function CallScreen({ i18n, imageDataCache, isCallLinkAdmin, - isGroupCallRaiseHandEnabled, me, openSystemPreferencesAction, renderEmojiPicker, @@ -908,7 +906,7 @@ export function CallScreen({ onClick={toggleAudio} tooltipDirection={TooltipPlacement.Top} /> - {isGroupCallRaiseHandEnabled && raiseHandButtonType && ( + {raiseHandButtonType && (