Use flag for calling raise hand

This commit is contained in:
ayumi-signal 2024-06-11 16:45:28 -07:00 committed by GitHub
parent 03406b15fa
commit ad3366fa5c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 27 additions and 1 deletions

View file

@ -88,6 +88,7 @@ const createProps = (storyProps: Partial<PropsType> = {}): PropsType => ({
i18n,
incomingCall: null,
callLink: storyProps.callLink ?? undefined,
isGroupCallRaiseHandEnabled: true,
me: {
...getDefaultConversation({
color: AvatarColors[0],

View file

@ -106,6 +106,7 @@ export type PropsType = {
denyUser: (payload: PendingUserActionPayloadType) => void;
hasInitialLoadCompleted: boolean;
i18n: LocalizerType;
isGroupCallRaiseHandEnabled: boolean;
me: ConversationType;
notifyForCall: (
conversationId: string,
@ -164,6 +165,7 @@ function ActiveCallManager({
denyUser,
hangUpActiveCall,
i18n,
isGroupCallRaiseHandEnabled,
getIsSharingPhoneNumberWithEverybody,
getGroupCallVideoFrameSource,
getPresentingSources,
@ -429,6 +431,7 @@ function ActiveCallManager({
i18n={i18n}
imageDataCache={imageDataCache}
isCallLinkAdmin={isCallLinkAdmin}
isGroupCallRaiseHandEnabled={isGroupCallRaiseHandEnabled}
me={me}
openSystemPreferencesAction={openSystemPreferencesAction}
renderEmojiPicker={renderEmojiPicker}
@ -503,6 +506,7 @@ export function CallManager({
i18n,
incomingCall,
isConversationTooBigToRing,
isGroupCallRaiseHandEnabled,
getIsSharingPhoneNumberWithEverybody,
me,
notifyForCall,
@ -592,6 +596,7 @@ export function CallManager({
getPresentingSources={getPresentingSources}
hangUpActiveCall={hangUpActiveCall}
i18n={i18n}
isGroupCallRaiseHandEnabled={isGroupCallRaiseHandEnabled}
getIsSharingPhoneNumberWithEverybody={
getIsSharingPhoneNumberWithEverybody
}

View file

@ -193,6 +193,7 @@ const createProps = (
i18n,
imageDataCache: React.createRef<CallingImageDataCache>(),
isCallLinkAdmin: true,
isGroupCallRaiseHandEnabled: true,
me: getDefaultConversation({
color: AvatarColors[1],
id: '6146087e-f7ef-457e-9a8d-47df1fdd6b25',

View file

@ -103,6 +103,7 @@ export type PropsType = {
i18n: LocalizerType;
imageDataCache: React.RefObject<CallingImageDataCache>;
isCallLinkAdmin: boolean;
isGroupCallRaiseHandEnabled: boolean;
me: ConversationType;
openSystemPreferencesAction: () => unknown;
renderReactionPicker: (
@ -194,6 +195,7 @@ export function CallScreen({
i18n,
imageDataCache,
isCallLinkAdmin,
isGroupCallRaiseHandEnabled,
me,
openSystemPreferencesAction,
renderEmojiPicker,
@ -931,7 +933,7 @@ export function CallScreen({
onClick={toggleAudio}
tooltipDirection={TooltipPlacement.Top}
/>
{raiseHandButtonType && (
{isGroupCallRaiseHandEnabled && raiseHandButtonType && (
<CallingButton
buttonType={raiseHandButtonType}
i18n={i18n}